Class jls.io.BufferedReader

Provides a buffered reader for character reader.
Defined in: BufferedReader.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
jls.io.BufferedReader(reader, size)
Creates a BufferedReader.
Method Summary
Method Attributes Method Name and Description
 
Closes this stream.
 
Flushs this stream.
 
Tells if this stream supports the mark and reset methods.
 
Reads a byte.
 
Reads this file into a buffer.
 
Reads a line and returns the string.
Class Detail
jls.io.BufferedReader(reader, size)
Creates a BufferedReader.
Parameters:
{jls.io.Reader} reader
The underlying character reader.
{Number} size
The buffer size.
Method Detail
close()
Closes this stream.

flush()
Flushs this stream.

{Boolean} markSupported()
Tells if this stream supports the mark and reset methods.
Returns:
{Boolean} if this stream instance supports the mark and reset methods; false otherwise.

{Number} readChar()
Reads a byte.
Returns:
{Number} The unsigned byte or -1.

{Number} readCharBuffer(buffer)
Reads this file into a buffer.
Parameters:
{jls.lang.Buffer} buffer
The buffer to read.
Returns:
{Number} the read byte count.

{String} readLine()
Reads a line and returns the string.
Returns:
{String} The line.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:12 GMT+0100 (CET)