org.hsqldb.rowio
Class RowOutputText
java.lang.Object
java.io.OutputStream
org.hsqldb.lib.HsqlByteArrayOutputStream
org.hsqldb.rowio.RowOutputBase
org.hsqldb.rowio.RowOutputText
- All Implemented Interfaces:
- DataOutput, RowOutputInterface
- Direct Known Subclasses:
- RowOutputTextQuoted
- public class RowOutputText
- extends RowOutputBase
Class for writing the data for a database row in text table format.
- Since:
- 1.7.0
- Version:
- 1.7.2
- Author:
- sqlbob@users (RMP)
Methods inherited from class org.hsqldb.lib.HsqlByteArrayOutputStream |
close, ensureRoom, fill, flush, getBuffer, reset, reset, size, toByteArray, toString, toString, toString, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeTo, writeUTF |
fieldSep
protected String fieldSep
varSep
protected String varSep
longvarSep
protected String longvarSep
allQuoted
protected boolean allQuoted
RowOutputText
public RowOutputText(String fieldSep,
String varSep,
String longvarSep,
boolean allQuoted)
throws IOException
RowOutputText
public RowOutputText(String fieldSep,
String varSep,
String longvarSep,
boolean allQuoted,
String encoding)
throws IOException
writePos
public void writePos(int pos)
throws IOException
- Specified by:
writePos
in interface RowOutputInterface
- Specified by:
writePos
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
writeType
public void writeType(int type)
throws IOException
- Specified by:
writeType
in interface RowOutputInterface
- Specified by:
writeType
in class RowOutputBase
- Throws:
IOException
writeString
public void writeString(String s)
throws IOException
- Specified by:
writeString
in interface RowOutputInterface
- Specified by:
writeString
in class RowOutputBase
- Throws:
IOException
writeVarString
protected void writeVarString(String s)
throws IOException
- Throws:
IOException
writeLongVarString
protected void writeLongVarString(String s)
throws IOException
- Throws:
IOException
checkConvertString
protected String checkConvertString(String s,
String sep)
throws IOException
- Throws:
IOException
writeByteArray
protected void writeByteArray(byte[] b)
throws IOException
- Throws:
IOException
writeIntData
public void writeIntData(int i)
throws IOException
- Specified by:
writeIntData
in interface RowOutputInterface
- Specified by:
writeIntData
in class RowOutputBase
- Throws:
IOException
writeIntData
public void writeIntData(int i,
int position)
throws IOException
- Specified by:
writeIntData
in interface RowOutputInterface
- Specified by:
writeIntData
in class RowOutputBase
- Throws:
IOException
writeFieldType
protected void writeFieldType(int type)
throws IOException
- Specified by:
writeFieldType
in class RowOutputBase
- Throws:
IOException
writeNull
protected void writeNull(int type)
throws IOException
- Specified by:
writeNull
in class RowOutputBase
- Throws:
IOException
writeChar
protected void writeChar(String s,
int t)
throws IOException
- Specified by:
writeChar
in class RowOutputBase
- Throws:
IOException
writeSmallint
protected void writeSmallint(Number o)
throws IOException,
HsqlException
- Specified by:
writeSmallint
in class RowOutputBase
- Throws:
IOException
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
writeReal
protected void writeReal(Double o,
int type)
throws IOException,
HsqlException
- Specified by:
writeReal
in class RowOutputBase
- Throws:
IOException
HsqlException
writeDecimal
protected void writeDecimal(BigDecimal o)
throws IOException,
HsqlException
- Specified by:
writeDecimal
in class RowOutputBase
- Throws:
IOException
HsqlException
writeBit
protected void writeBit(Boolean o)
throws IOException,
HsqlException
- Specified by:
writeBit
in class RowOutputBase
- Throws:
IOException
HsqlException
writeDate
protected void writeDate(Date o)
throws IOException,
HsqlException
- Specified by:
writeDate
in class RowOutputBase
- Throws:
IOException
HsqlException
writeTime
protected void writeTime(Time o)
throws IOException,
HsqlException
- Specified by:
writeTime
in class RowOutputBase
- Throws:
IOException
HsqlException
writeTimestamp
protected void writeTimestamp(Timestamp o)
throws IOException,
HsqlException
- Specified by:
writeTimestamp
in class RowOutputBase
- Throws:
IOException
HsqlException
writeOther
protected void writeOther(JavaObject o)
throws IOException,
HsqlException
- Specified by:
writeOther
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
getSize
public int getSize(CachedRow r)
throws HsqlException
- Throws:
HsqlException
Copyright © 2001 - 2004 HSQL Development Group. All Rights Reserved.