Maven module :un.api : api-encoding :
Class : un.api.io.ByteInputStream
Extends/Implements : -
Subclasses : -

Basic byte stream, strict minimum requiered.
InputStreams are not concurrent.
author  Johann Sorel


Variables : -
Functions : read, read, read, read, skip, close




Read next byte.
return  byte as int or -1 if reached end of stream
throws  IOException
int read ()


Read as much byte as can contain the buffer.
param  buffer
return  number of bytes readed or -1 if reached end of stream
throws  IOException
int read (byte[] buffer)


Read 'length' byte and store them at 'offset' in 'buffer'.

@param buffer
@param offset
@param length
@return number of bytes readed or -1 if reached end of stream
@throws IOException
int read (byte[] buffer, int offset, int length)


Read 'length' byte and store them at 'offset' in 'buffer'.

@param buffer
@param offset
@param length
@return number of bytes readed or -1 if reached end of stream
@throws IOException
int read (Buffer buffer, int offset, int length)


Skip next n bytes.
returns number of byte skiped.
param  n
return
throws  IOException
long skip (long n)


Close the stream.
throws  IOException
void close ()