org.hsqldb.rowio
Class RowOutputTextQuoted

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

public class RowOutputTextQuoted
extends RowOutputText

This class quotes strings only if they contain the quote character or the separator for the field. The quote character is doubled.

Since:
1.7.0
Version:
1.7.2
Author:
sqlbob@users (RMP)

Field Summary
 
Fields inherited from class org.hsqldb.rowio.RowOutputText
allQuoted, fieldSep, longvarSep, varSep
 
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
RowOutputTextQuoted(String fieldSep, String varSep, String longvarSep, boolean allQuoted)
           
RowOutputTextQuoted(String fieldSep, String varSep, String longvarSep, boolean allQuoted, String encoding)
           
 
Method Summary
protected  String checkConvertString(String s, String sep)
           
 
Methods inherited from class org.hsqldb.rowio.RowOutputText
getSize, writeBigint, writeBinary, writeBit, writeByteArray, writeChar, writeDate, writeDecimal, writeFieldType, writeIntData, writeIntData, writeInteger, writeLongVarString, writeNull, writeOther, writePos, writeReal, writeSize, writeSmallint, writeString, writeTime, writeTimestamp, writeType, writeVarString
 
Methods inherited from class org.hsqldb.rowio.RowOutputBase
getOutputStream, newRowOutput, writeData, writeData, writeFieldPrefix
 
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
 
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
reset, size
 

Constructor Detail

RowOutputTextQuoted

public RowOutputTextQuoted(String fieldSep,
                           String varSep,
                           String longvarSep,
                           boolean allQuoted)
                    throws IOException

RowOutputTextQuoted

public RowOutputTextQuoted(String fieldSep,
                           String varSep,
                           String longvarSep,
                           boolean allQuoted,
                           String encoding)
                    throws IOException
Method Detail

checkConvertString

protected String checkConvertString(String s,
                                    String sep)
                             throws IOException
Overrides:
checkConvertString in class RowOutputText
Throws:
IOException


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