getMaxObjectSize
public int getMaxObjectSize()
Returns the allowed maximum size of the object to be decoded.
If the size of the object to be decoded exceeds this value, this
decoder will throw a
BufferDataException
. The default
value is
1048576 (1MB).
read
public int read()
throws IOException
readBoolean
public boolean readBoolean()
throws IOException
readByte
public byte readByte()
throws IOException
readChar
public char readChar()
throws IOException
readDouble
public double readDouble()
throws IOException
readFloat
public float readFloat()
throws IOException
readFully
public void readFully(byte[] b)
throws IOException
readFully
public void readFully(byte[] b,
int off,
int len)
throws IOException
readInt
public int readInt()
throws IOException
readLine
public String readLine()
throws IOException
readLong
public long readLong()
throws IOException
readObject
public Object readObject()
throws ClassNotFoundException,
IOException
readShort
public short readShort()
throws IOException
readUTF
public String readUTF()
throws IOException
readUnsignedByte
public int readUnsignedByte()
throws IOException
readUnsignedShort
public int readUnsignedShort()
throws IOException
setMaxObjectSize
public void setMaxObjectSize(int maxObjectSize)
Sets the allowed maximum size of the object to be decoded.
If the size of the object to be decoded exceeds this value, this
decoder will throw a
BufferDataException
. The default
value is
1048576 (1MB).
skipBytes
public int skipBytes(int n)
throws IOException