Provides for system input and output through data streams,
serialization and the file system.
Classes
A representation of file and directory pathnames.
Datatype representing an input stream of bytes.
This class represents an output stream of bytes
Native process created by exec.
Exceptions
Constants
The system-dependent default name-separator character.
The system-dependent path-separator character.
Functions
Creates temporary file with given 'prefix' and 'suffix' to optional
'path'. If path is omitted system's default temporary directory is used.
| Parameters |
prefix -
Prefix of created file
suffix -
Suffix of create file
path -
Path into which the file is created
|
| Returns |
Temporary file |
| Throws |
IOError -
If an I/O error occurs
|
Executes given command and return process datatype.
| Parameters |
arguments -
Sequence of arguments
environment -
Process environment
|
| Returns |
a process datatype |
Returns tuple (contentType, width, height, color)
for GIF, PNG and JPEG images. If the size cannot be determined
returns undefined.
| Throws |
IOError -
If an I/O error occurs
|
Returns an InputStream that will loop through the elements
of iterator. Given an element of type:
int - single byte is added to stream
binary - contents of binary of is added to stream
- anything else - contents of
toString() is added to stream
Lists all the file system roots of the system.
Loads serialized data from file.
| Parameters |
file -
File to load from
|
| Throws |
CorruptedSerialization -
If serialized data is corrupted.
IOError -
If an I/O error occurs
|
Returns an OutputStream that will send content to
given handler. Handler must implement following operations:
void flush()
void close()
void write(binary bin, int offset, int length)
Executes given command and prints its output.
| Parameters |
arguments -
Sequence of arguments
environment -
Process environment
|
| Returns |
the exit value returned by the command |
Reads the contents of a file into a text string.
| Parameters |
file -
File to read
|
| Throws |
IOError -
If an I/O error occurs
|
Serializes data to file.
| Parameters |
file -
Filename to save to
data -
Data to serialize
|
| Throws |
IOError -
If an I/O error occurs
|