Top Fields Constructors Methods
org.hsqldb.rowio

public Class RowOutputTextLog

extends RowOutputBase
Class Inheritance
Imports
java.math.BigDecimal, org.hsqldb.Row, .Tokens, org.hsqldb.error.Error, .ErrorCode, org.hsqldb.lib.StringConverter, org.hsqldb.lib.java.JavaSystem, org.hsqldb.types.BinaryData, .BlobData, .ClobData, .IntervalMonthData, .IntervalSecondData, .JavaObjectData, .TimeData, .TimestampData, .Type

Author
Fred Toussi (fredt@users dot sourceforge.net)
Version
2.5.0

Field Summary

Modifier and TypeField and Description
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private static final byte[]
private boolean
private int
public static final int
public static final int
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public RowOutputInterface
public int
public int
public void
public long
public void
public void
protected void
protected void
protected void
protected void
protected void
protected void
public void
protected void
protected void
protected void
protected void
protected void
public void
protected void
protected void
public void
writeInt(int i)

Overrides org.hsqldb.lib.HsqlByteArrayOutputStream.writeInt.

Implements org.hsqldb.rowio.RowOutputInterface.writeInt, java.io.DataOutput.writeInt.

Writes an int value, which is comprised of four bytes, to the output stream.

protected void
public void
writeLong(long value)

Overrides org.hsqldb.lib.HsqlByteArrayOutputStream.writeLong.

Implements org.hsqldb.rowio.RowOutputInterface.writeLong, java.io.DataOutput.writeLong.

Writes a long value, which is comprised of eight bytes, to the output stream.

protected void
protected void
protected void
public void
writeShort(int i)

Overrides org.hsqldb.lib.HsqlByteArrayOutputStream.writeShort.

Implements org.hsqldb.rowio.RowOutputInterface.writeShort, java.io.DataOutput.writeShort.

Writes two bytes to the output stream to represent the value of the argument.

public void
protected void
public void
protected void
protected void
public void
protected void
protected void
Inherited from org.hsqldb.rowio.RowOutputBase:
getOutputStreamwriteDatawriteDatawriteData

Field Detail

BYTES_ANDback to summary
private static final byte[] BYTES_AND
BYTES_ARRAYback to summary
private static final byte[] BYTES_ARRAY
BYTES_FALSEback to summary
private static final byte[] BYTES_FALSE
BYTES_ISback to summary
private static final byte[] BYTES_IS
BYTES_NULLback to summary
private static final byte[] BYTES_NULL
BYTES_TRUEback to summary
private static final byte[] BYTES_TRUE
isWrittenback to summary
private boolean isWritten
logModeback to summary
private int logMode
MODE_DELETEback to summary
public static final int MODE_DELETE
MODE_INSERTback to summary
public static final int MODE_INSERT
noSeparatorsback to summary
private boolean noSeparators

Constructor Detail

RowOutputTextLogback to summary
public RowOutputTextLog()

Method Detail

duplicateback to summary
public RowOutputInterface duplicate()

Implements abstract org.hsqldb.rowio.RowOutputBase.duplicate.

Implements org.hsqldb.rowio.RowOutputInterface.duplicate.

getSizeback to summary
public int getSize(Row row)

Implements org.hsqldb.rowio.RowOutputInterface.getSize.

getStorageSizeback to summary
public int getStorageSize(int size)

Implements org.hsqldb.rowio.RowOutputInterface.getStorageSize.

resetback to summary
public void reset()

Overrides org.hsqldb.lib.HsqlByteArrayOutputStream.reset.

Implements org.hsqldb.rowio.RowOutputInterface.reset.

scaleFilePositionback to summary
public long scaleFilePosition(long position)

Implements org.hsqldb.rowio.RowOutputInterface.scaleFilePosition.

setModeback to summary
public void setMode(int mode)

Implements org.hsqldb.rowio.RowOutputInterface.setMode.

setStorageSizeback to summary
public void setStorageSize(int size)

Implements org.hsqldb.rowio.RowOutputInterface.setStorageSize.

writeArrayback to summary
protected void writeArray(Object[] o, Type type)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeArray.

writeBigintback to summary
protected void writeBigint(Number o)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeBigint.

writeBinaryback to summary
protected void writeBinary(BinaryData o)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeBinary.

writeBitback to summary
protected void writeBit(BinaryData o)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeBit.

writeBlobback to summary
protected void writeBlob(BlobData o, Type type)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeBlob.

writeBooleanback to summary
protected void writeBoolean(Boolean o)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeBoolean.

writeBytesback to summary
public void writeBytes(byte[] b)

Implements org.hsqldb.rowio.RowOutputInterface.writeBytes.

writeCharback to summary
protected void writeChar(String s, Type t)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeChar.

writeClobback to summary
protected void writeClob(ClobData o, Type type)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeClob.

writeDateback to summary
protected void writeDate(TimestampData o, Type type)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeDate.

writeDaySecondIntervalback to summary
protected void writeDaySecondInterval(IntervalSecondData o, Type type)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeDaySecondInterval.

writeDecimalback to summary
protected void writeDecimal(BigDecimal o, Type type)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeDecimal.

writeEndback to summary
public void writeEnd()

Implements org.hsqldb.rowio.RowOutputInterface.writeEnd.

writeFieldPrefixback to summary
protected void writeFieldPrefix()

Overrides org.hsqldb.rowio.RowOutputBase.writeFieldPrefix.

writeFieldTypeback to summary
protected void writeFieldType(Type type)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeFieldType.

writeIntback to summary
public void writeInt(int i)

Overrides org.hsqldb.lib.HsqlByteArrayOutputStream.writeInt.

Implements org.hsqldb.rowio.RowOutputInterface.writeInt, java.io.DataOutput.writeInt.

Doc from java.io.DataOutput.writeInt.

Writes an int value, which is comprised of four bytes, to the output stream. The byte values to be written, in the order shown, are:

(byte)(0xff & (v >> 24))
(byte)(0xff & (v >> 16))
(byte)(0xff & (v >>  8))
(byte)(0xff & v)

The bytes written by this method may be read by the readInt method of interface DataInput, which will then return an int equal to v.

writeIntegerback to summary
protected void writeInteger(Number o)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeInteger.

writeLongback to summary
public void writeLong(long value)

Overrides org.hsqldb.lib.HsqlByteArrayOutputStream.writeLong.

Implements org.hsqldb.rowio.RowOutputInterface.writeLong, java.io.DataOutput.writeLong.

Doc from java.io.DataOutput.writeLong.

Writes a long value, which is comprised of eight bytes, to the output stream. The byte values to be written, in the order shown, are:

(byte)(0xff & (v >> 56))
(byte)(0xff & (v >> 48))
(byte)(0xff & (v >> 40))
(byte)(0xff & (v >> 32))
(byte)(0xff & (v >> 24))
(byte)(0xff & (v >> 16))
(byte)(0xff & (v >>  8))
(byte)(0xff & v)

The bytes written by this method may be read by the readLong method of interface DataInput, which will then return a long equal to v.

writeNullback to summary
protected void writeNull(Type type)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeNull.

writeOtherback to summary
protected void writeOther(JavaObjectData o)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeOther.

writeRealback to summary
protected void writeReal(Double o)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeReal.

writeShortback to summary
public void writeShort(int i)

Overrides org.hsqldb.lib.HsqlByteArrayOutputStream.writeShort.

Implements org.hsqldb.rowio.RowOutputInterface.writeShort, java.io.DataOutput.writeShort.

Doc from java.io.DataOutput.writeShort.

Writes two bytes to the output stream to represent the value of the argument. The byte values to be written, in the order shown, are:

(byte)(0xff & (v >> 8))
(byte)(0xff & v)

The bytes written by this method may be read by the readShort method of interface DataInput, which will then return a short equal to (short)v.

writeSizeback to summary
public void writeSize(int size)

Implements org.hsqldb.rowio.RowOutputInterface.writeSize.

writeSmallintback to summary
protected void writeSmallint(Number o)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeSmallint.

writeStringback to summary
public void writeString(String value)

Implements org.hsqldb.rowio.RowOutputInterface.writeString.

writeTimeback to summary
protected void writeTime(TimeData o, Type type)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeTime.

writeTimestampback to summary
protected void writeTimestamp(TimestampData o, Type type)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeTimestamp.

writeTypeback to summary
public void writeType(int type)

Implements org.hsqldb.rowio.RowOutputInterface.writeType.

writeUUIDback to summary
protected void writeUUID(BinaryData o)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeUUID.

writeYearMonthIntervalback to summary
protected void writeYearMonthInterval(IntervalMonthData o, Type type)

Implements abstract org.hsqldb.rowio.RowOutputBase.writeYearMonthInterval.