Class std.io.InputStream
Synopsis
public abstract class InputStream
An input stream is an object which allows data to be received from some source.
Fields
Constructors
Methods
protected abstract int readBytes(byte_t[] bytes);
This method must be implemented by child classes to implement the actual input machanism. Bytes read from the stream are used to fill the array.
Arguments
bytes | The array of bytes to fill. |
---|
Returns
The number of bytes successfully read; 0 indicating end of stream.
Throws
std.io.IOError | If an I/O error occured. |
---|
Read the up to the specified number of bytes from the stream, and return them in a string.
public final String readLine();
Read a line of text from the stream, and return it as a string, without the line terminator.
Returns null
at the end of the stream.