org.hsqldb.rowio
Class RowInputBinary
java.lang.Object
   java.io.InputStream
java.io.InputStream
       org.hsqldb.lib.HsqlByteArrayInputStream
org.hsqldb.lib.HsqlByteArrayInputStream
           org.hsqldb.rowio.RowInputBase
org.hsqldb.rowio.RowInputBase
               org.hsqldb.rowio.RowInputBinary
org.hsqldb.rowio.RowInputBinary
- All Implemented Interfaces: 
- DataInput, RowInputInterface
- public class RowInputBinary- extends RowInputBase- implements RowInputInterface
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.
- Since:
- 1.7.0
- Version:
- 1.7.2
- Author:
- sqlbob@users (RMP), fredt@users
 
 
 
 
 
 
| Methods inherited from class org.hsqldb.lib.HsqlByteArrayInputStream | 
| available, close, mark, markSupported, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, reset, skip | 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
 
RowInputBinary
public RowInputBinary()
RowInputBinary
public RowInputBinary(byte[] buf)
RowInputBinary
public RowInputBinary(RowOutputBinary out)
- uses the byte[] buffer from out. At each reset, the buffer is set
 to the current one for out.
 
readByteArray
protected byte[] readByteArray()
                        throws IOException
- 
 
- 
- Throws:
- IOException
 
readType
public int readType()
             throws IOException
- 
- Specified by:
- readTypein interface- RowInputInterface
- Specified by:
- readTypein class- RowInputBase
 
- 
- Throws:
- IOException
 
readIntData
public int readIntData()
                throws IOException
- 
- Specified by:
- readIntDatain interface- RowInputInterface
- Specified by:
- readIntDatain class- RowInputBase
 
- 
- Throws:
- IOException
 
readString
public String readString()
                  throws IOException
- 
- Specified by:
- readStringin interface- RowInputInterface
- Specified by:
- readStringin class- RowInputBase
 
- 
- Throws:
- IOException
 
checkNull
protected boolean checkNull()
                     throws IOException
- 
- Specified by:
- checkNullin class- RowInputBase
 
- 
- Throws:
- IOException
 
readChar
protected String readChar(int type)
                   throws IOException
- 
- Specified by:
- readCharin class- RowInputBase
 
- 
- Throws:
- IOException
 
readSmallint
protected Integer readSmallint()
                        throws IOException,
                               HsqlException
- 
- Specified by:
- readSmallintin class- RowInputBase
 
- 
- Throws:
- IOException
- HsqlException
 
readInteger
protected Integer readInteger()
                       throws IOException,
                              HsqlException
- 
- Specified by:
- readIntegerin class- RowInputBase
 
- 
- Throws:
- IOException
- HsqlException
 
readBigint
protected Long readBigint()
                   throws IOException,
                          HsqlException
- 
- Specified by:
- readBigintin class- RowInputBase
 
- 
- Throws:
- IOException
- HsqlException
 
readReal
protected Double readReal(int type)
                   throws IOException,
                          HsqlException
- 
- Specified by:
- readRealin class- RowInputBase
 
- 
- Throws:
- IOException
- HsqlException
 
readDecimal
protected BigDecimal readDecimal()
                          throws IOException,
                                 HsqlException
- 
- Specified by:
- readDecimalin class- RowInputBase
 
- 
- Throws:
- IOException
- HsqlException
 
readBit
protected Boolean readBit()
                   throws IOException,
                          HsqlException
- 
- Specified by:
- readBitin class- RowInputBase
 
- 
- Throws:
- IOException
- HsqlException
 
readTime
protected Time readTime()
                 throws IOException,
                        HsqlException
- 
- Specified by:
- readTimein class- RowInputBase
 
- 
- Throws:
- IOException
- HsqlException
- To Do: 
- fredt - get time and data longs then normalise before fetching value
 
readDate
protected Date readDate()
                 throws IOException,
                        HsqlException
- 
- Specified by:
- readDatein class- RowInputBase
 
- 
- Throws:
- IOException
- HsqlException
 
readTimestamp
protected Timestamp readTimestamp()
                           throws IOException,
                                  HsqlException
- 
- Specified by:
- readTimestampin class- RowInputBase
 
- 
- Throws:
- IOException
- HsqlException
 
readOther
protected Object readOther()
                    throws IOException,
                           HsqlException
- 
- Specified by:
- readOtherin class- RowInputBase
 
- 
- Throws:
- IOException
- HsqlException
 
readBinary
protected Binary readBinary(int type)
                     throws IOException,
                            HsqlException
- 
- Specified by:
- readBinaryin class- RowInputBase
 
- 
- Throws:
- IOException
- HsqlException
 
resetRow
public void resetRow(int rowsize)
- Used to reset the row, ready for Result data to be written into the
  byte[] buffer by an external routine.
 
- 
 
- 
 
resetRow
public void resetRow(int filepos,
                     int rowsize)
              throws IOException
- Used to reset the row, ready for a new db row to be written into the
  byte[] buffer by an external routine.
 
- 
- Specified by:
- resetRowin interface- RowInputInterface
- Overrides:
- resetRowin class- RowInputBase
 
- 
- Throws:
- IOException
 
Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.