org.hsqldb.rowio
Class RowOutputTextLog

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.hsqldb.lib.HsqlByteArrayOutputStream
          extended byorg.hsqldb.rowio.RowOutputBase
              extended byorg.hsqldb.rowio.RowOutputTextLog
All Implemented Interfaces:
DataOutput, RowOutputInterface

public class RowOutputTextLog
extends RowOutputBase

Since:
1.7.2
Version:
1.7.2
Author:
fredt@users

Field Summary
static int MODE_DELETE
           
static int MODE_INSERT
           
 
Fields inherited from class org.hsqldb.rowio.RowOutputBase
CACHED_ROW_160, CACHED_ROW_170, skipSystemId
 
Fields inherited from class org.hsqldb.lib.HsqlByteArrayOutputStream
buf, count
 
Constructor Summary
RowOutputTextLog()
           
 
Method Summary
 int getSize(CachedRow row)
           
 void reset()
           
 void setMode(int mode)
           
protected  void writeBigint(Number o)
           
protected  void writeBinary(Binary o, int t)
           
protected  void writeBit(Boolean o)
           
protected  void writeChar(String s, int t)
           
protected  void writeDate(Date o)
           
protected  void writeDecimal(BigDecimal o)
           
protected  void writeFieldPrefix()
           
protected  void writeFieldType(int type)
           
 void writeIntData(int i)
           
 void writeIntData(int i, int position)
           
protected  void writeInteger(Number o)
           
 void writeLongData(long value)
           
protected  void writeNull(int type)
           
protected  void writeOther(JavaObject o)
           
 void writePos(int pos)
           
protected  void writeReal(Double o, int type)
           
 void writeSize(int size)
           
protected  void writeSmallint(Number o)
           
 void writeString(String value)
           
protected  void writeTime(Time o)
           
protected  void writeTimestamp(Timestamp o)
           
 void writeType(int type)
           
 
Methods inherited from class org.hsqldb.rowio.RowOutputBase
getOutputStream, newRowOutput, writeData, writeData
 
Methods inherited from class org.hsqldb.lib.HsqlByteArrayOutputStream
close, ensureRoom, fill, flush, getBuffer, reset, size, toByteArray, toString, toString, toString, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeTo, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.hsqldb.rowio.RowOutputInterface
size
 

Field Detail

MODE_DELETE

public static final int MODE_DELETE
See Also:
Constant Field Values

MODE_INSERT

public static final int MODE_INSERT
See Also:
Constant Field Values
Constructor Detail

RowOutputTextLog

public RowOutputTextLog()
Method Detail

setMode

public void setMode(int mode)

writeFieldPrefix

protected void writeFieldPrefix()
                         throws IOException
Overrides:
writeFieldPrefix in class RowOutputBase
Throws:
IOException

writeChar

protected void writeChar(String s,
                         int t)
                  throws IOException
Specified by:
writeChar in class RowOutputBase
Throws:
IOException

writeReal

protected void writeReal(Double o,
                         int type)
                  throws IOException,
                         HsqlException
Specified by:
writeReal in class RowOutputBase
Throws:
IOException
HsqlException

writeSmallint

protected void writeSmallint(Number o)
                      throws IOException,
                             HsqlException
Specified by:
writeSmallint in class RowOutputBase
Throws:
IOException
HsqlException

writePos

public void writePos(int pos)
              throws IOException
Specified by:
writePos in interface RowOutputInterface
Specified by:
writePos in class RowOutputBase
Throws:
IOException

writeTime

protected void writeTime(Time o)
                  throws IOException,
                         HsqlException
Specified by:
writeTime in class RowOutputBase
Throws:
IOException
HsqlException

writeBinary

protected void writeBinary(Binary o,
                           int t)
                    throws IOException,
                           HsqlException
Specified by:
writeBinary in class RowOutputBase
Throws:
IOException
HsqlException

writeType

public void writeType(int type)
               throws IOException
Specified by:
writeType in interface RowOutputInterface
Specified by:
writeType in class RowOutputBase
Throws:
IOException

writeSize

public void writeSize(int size)
               throws IOException
Specified by:
writeSize in interface RowOutputInterface
Specified by:
writeSize in class RowOutputBase
Throws:
IOException

writeDate

protected void writeDate(Date o)
                  throws IOException,
                         HsqlException
Specified by:
writeDate in class RowOutputBase
Throws:
IOException
HsqlException

getSize

public int getSize(CachedRow row)
            throws HsqlException
Throws:
HsqlException

writeInteger

protected void writeInteger(Number o)
                     throws IOException,
                            HsqlException
Specified by:
writeInteger in class RowOutputBase
Throws:
IOException
HsqlException

writeBigint

protected void writeBigint(Number o)
                    throws IOException,
                           HsqlException
Specified by:
writeBigint in class RowOutputBase
Throws:
IOException
HsqlException

writeNull

protected void writeNull(int type)
                  throws IOException
Specified by:
writeNull in class RowOutputBase
Throws:
IOException

writeOther

protected void writeOther(JavaObject o)
                   throws IOException,
                          HsqlException
Specified by:
writeOther in class RowOutputBase
Throws:
IOException
HsqlException

writeString

public void writeString(String value)
                 throws IOException
Specified by:
writeString in interface RowOutputInterface
Specified by:
writeString in class RowOutputBase
Throws:
IOException

writeBit

protected void writeBit(Boolean o)
                 throws IOException,
                        HsqlException
Specified by:
writeBit in class RowOutputBase
Throws:
IOException
HsqlException

writeDecimal

protected void writeDecimal(BigDecimal o)
                     throws IOException,
                            HsqlException
Specified by:
writeDecimal in class RowOutputBase
Throws:
IOException
HsqlException

writeFieldType

protected void writeFieldType(int type)
                       throws IOException
Specified by:
writeFieldType in class RowOutputBase
Throws:
IOException

writeLongData

public void writeLongData(long value)

writeIntData

public void writeIntData(int i,
                         int position)
                  throws IOException
Specified by:
writeIntData in interface RowOutputInterface
Specified by:
writeIntData in class RowOutputBase
Throws:
IOException

writeTimestamp

protected void writeTimestamp(Timestamp o)
                       throws IOException,
                              HsqlException
Specified by:
writeTimestamp in class RowOutputBase
Throws:
IOException
HsqlException

writeIntData

public void writeIntData(int i)
                  throws IOException
Specified by:
writeIntData in interface RowOutputInterface
Specified by:
writeIntData in class RowOutputBase
Throws:
IOException

reset

public void reset()
Specified by:
reset in interface RowOutputInterface
Overrides:
reset in class HsqlByteArrayOutputStream


Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.