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

fixed size buffer.
author  Johann Sorel


Variables : buffer, used
Functions : FIFOBuffer, fill, clip, peek


public byte[] buffer

public int used


public void FIFOBuffer (int size)


Fill remaining space with bytes from given stream.
param  is source ByteInputStream
return  the number of byte in the buffer.
public void fill (ByteInputStream is)


remove the first bytes.
param  nbbyte
public void clip (int nbbyte)


Peek one byte.
return  byte
public byte peek ()