net.axyana.qizxopen.util
Class ByteInputBase
java.lang.Object
net.axyana.qizxopen.util.ByteInputBase
- All Implemented Interfaces:
- ByteInput, java.io.Serializable
- Direct Known Subclasses:
- ByteInputStream, CoreByteInput
- public abstract class ByteInputBase
- extends java.lang.Object
- implements ByteInput, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteInputBase
public ByteInputBase()
ByteInputBase
public ByteInputBase(int bufferSize)
getByte
public int getByte()
throws java.io.IOException
- Specified by:
getByte
in interface ByteInput
- Throws:
java.io.IOException
getBytes
public int getBytes(byte[] buffer)
throws java.io.IOException
- Specified by:
getBytes
in interface ByteInput
- Throws:
java.io.IOException
getBytes
public int getBytes(byte[] buffer,
int start,
int reqsize)
throws java.io.IOException
- Throws:
java.io.IOException
getVint
public int getVint()
throws java.io.IOException
- Specified by:
getVint
in interface ByteInput
- Throws:
java.io.IOException
getVlong
public long getVlong()
throws java.io.IOException
- Specified by:
getVlong
in interface ByteInput
- Throws:
java.io.IOException
getDouble
public double getDouble()
throws java.io.IOException
- Specified by:
getDouble
in interface ByteInput
- Throws:
java.io.IOException
getChars
public void getChars(char[] buffer,
int pos,
int length,
boolean wide)
throws java.io.IOException
- Specified by:
getChars
in interface ByteInput
- Throws:
java.io.IOException
getString
public java.lang.String getString()
throws java.io.IOException
- Specified by:
getString
in interface ByteInput
- Throws:
java.io.IOException
getChars
public char[] getChars()
throws java.io.IOException
- Specified by:
getChars
in interface ByteInput
- Throws:
java.io.IOException
getChars
public void getChars(char[] chars,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
decode
public long decode()
read
public int read(byte[] buffer)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] buffer,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
inspect
public void inspect()
- Specified by:
inspect
in interface ByteInput