org.hsqldb.rowio
Class RowInputTextQuoted

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.hsqldb.lib.HsqlByteArrayInputStream
          extended byorg.hsqldb.rowio.RowInputBase
              extended byorg.hsqldb.rowio.RowInputText
                  extended byorg.hsqldb.rowio.RowInputTextQuoted
All Implemented Interfaces:
DataInput, RowInputInterface

public class RowInputTextQuoted
extends RowInputText

Fields in the source file need not be quoted. Methods in this class unquote the fields if they are quoted and handle quote character doubling in this case.

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

Field Summary
 
Fields inherited from class org.hsqldb.rowio.RowInputText
allQuoted, field, line, next, text
 
Fields inherited from class org.hsqldb.rowio.RowInputBase
filePos, makeSystemId, nextPos, size
 
Fields inherited from class org.hsqldb.lib.HsqlByteArrayInputStream
buf, count, mark, pos
 
Constructor Summary
RowInputTextQuoted(String fieldSep, String varSep, String longvarSep, boolean allQuoted)
           
 
Method Summary
protected  String getField(String sep, int sepLen, boolean isEnd)
           
 void setSource(String text, int pos)
           
 void setSource(String text, int pos, int len)
           
 
Methods inherited from class org.hsqldb.rowio.RowInputText
checkNull, getLineNumber, readBigint, readBinary, readBit, readChar, readDate, readDecimal, readIntData, readInteger, readOther, readReal, readSmallint, readString, readTime, readTimestamp, readType, reset, setNextPos, skippedLine
 
Methods inherited from class org.hsqldb.rowio.RowInputBase
getBuffer, getNextPos, getPos, getSize, newRowInput, readData, readLine, resetRow, setSystemId, skipBytes
 
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, skip
 
Methods inherited from class java.io.InputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hsqldb.rowio.RowInputInterface
getBuffer, getNextPos, getPos, getSize, readData, resetRow, setSystemId
 

Constructor Detail

RowInputTextQuoted

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

setSource

public void setSource(String text,
                      int pos)
Overrides:
setSource in class RowInputText

setSource

public void setSource(String text,
                      int pos,
                      int len)
Overrides:
setSource in class RowInputText

getField

protected String getField(String sep,
                          int sepLen,
                          boolean isEnd)
                   throws IOException
Overrides:
getField in class RowInputText
Throws:
IOException


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