Class jls.io.BufferedInputStream

A character reader for byte input stream.
Defined in: BufferedInputStream.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a BufferedInputStream.
Method Summary
Method Attributes Method Name and Description
 
Closes this stream.
 
Flushs this stream.
 
Tells if this stream supports the mark and reset methods.
 
read(buffer)
Reads this file into a buffer.
 
Reads a byte.
 
readByteArray(barray, offset, length)
Reads bytes into the specified byte array, starting at the given offset.
Class Detail
jls.io.BufferedInputStream(input, size)
Creates a BufferedInputStream.
Parameters:
{jls.io.InputStream} input
The underlying byte input stream.
{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} read(buffer)
Reads this file into a buffer.
Parameters:
{jls.lang.Buffer} buffer
The buffer to read.
Returns:
{Number} the read byte count.

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

{Number} readByteArray(barray, offset, length)
Reads bytes into the specified byte array, starting at the given offset.
Parameters:
{ByteArray} barray
The destination byte array.
{Number} offset
The offset at which to start storing bytes.
{Number} length
The maximum number of bytes to read.
Returns:
{Number} The total number of bytes read.

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