org.hsqldb
Class BinaryServerRowInput

java.lang.Object
java.io.InputStream
java.io.FilterInputStream
java.io.DataInputStream
org.hsqldb.DatabaseRowInput
org.hsqldb.BinaryServerRowInput
- All Implemented Interfaces:
- java.io.Closeable, DatabaseRowInputInterface, java.io.DataInput
- class BinaryServerRowInput
- extends DatabaseRowInput
- implements DatabaseRowInputInterface
Provides methods for reading the data for a row from a
byte array. The format of data is that used for storage of cached
tables by v.1.6.x databases, apart from strings.
- Version:
- 1.7.0
| Methods inherited from class java.io.DataInputStream |
read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, readUTF, skipBytes |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_POS
static final int NO_POS
- See Also:
- Constant Field Values
pos
protected int pos
nextPos
protected int nextPos
size
protected int size
makeSystemId
protected boolean makeSystemId
BinaryServerRowInput
public BinaryServerRowInput(byte[] bin)
throws java.io.IOException
BinaryServerRowInput
public BinaryServerRowInput(byte[] bin,
int pos)
throws java.io.IOException
readByteArray
byte[] readByteArray()
throws java.io.IOException
readType
public int readType()
throws java.io.IOException
- Specified by:
readType in interface DatabaseRowInputInterface- Specified by:
readType in class DatabaseRowInput
readIntData
public int readIntData()
throws java.io.IOException
- Specified by:
readIntData in interface DatabaseRowInputInterface- Specified by:
readIntData in class DatabaseRowInput
readString
public java.lang.String readString()
throws java.io.IOException
- Specified by:
readString in interface DatabaseRowInputInterface- Specified by:
readString in class DatabaseRowInput
checkNull
protected boolean checkNull()
throws java.io.IOException
- Specified by:
checkNull in class DatabaseRowInput
readChar
protected java.lang.String readChar(int type)
throws java.io.IOException
- Specified by:
readChar in class DatabaseRowInput
readSmallint
protected java.lang.Integer readSmallint()
throws java.io.IOException,
java.sql.SQLException
- Specified by:
readSmallint in class DatabaseRowInput
readInteger
protected java.lang.Integer readInteger()
throws java.io.IOException,
java.sql.SQLException
- Specified by:
readInteger in class DatabaseRowInput
readBigint
protected java.lang.Long readBigint()
throws java.io.IOException,
java.sql.SQLException
- Specified by:
readBigint in class DatabaseRowInput
readReal
protected java.lang.Double readReal(int type)
throws java.io.IOException,
java.sql.SQLException
- Specified by:
readReal in class DatabaseRowInput
readDecimal
protected java.math.BigDecimal readDecimal()
throws java.io.IOException,
java.sql.SQLException
- Specified by:
readDecimal in class DatabaseRowInput
readBit
protected java.lang.Boolean readBit()
throws java.io.IOException,
java.sql.SQLException
- Specified by:
readBit in class DatabaseRowInput
readTime
protected java.sql.Time readTime()
throws java.io.IOException,
java.sql.SQLException
- Specified by:
readTime in class DatabaseRowInput
readDate
protected java.sql.Date readDate()
throws java.io.IOException,
java.sql.SQLException
- Specified by:
readDate in class DatabaseRowInput
readTimestamp
protected java.sql.Timestamp readTimestamp()
throws java.io.IOException,
java.sql.SQLException
- Specified by:
readTimestamp in class DatabaseRowInput
readOther
protected java.lang.Object readOther()
throws java.io.IOException,
java.sql.SQLException
- Specified by:
readOther in class DatabaseRowInput
readBinary
protected byte[] readBinary(int type)
throws java.io.IOException,
java.sql.SQLException
- Specified by:
readBinary in class DatabaseRowInput
getPos
public int getPos()
throws java.io.IOException
getNextPos
public int getNextPos()
throws java.io.IOException
getSize
public int getSize()
available
public int available()
throws java.io.IOException
readData
public java.lang.Object[] readData(int[] colTypes)
throws java.io.IOException,
java.sql.SQLException