org.hsqldb.rowio
Class RowInputTextQuoted
- java.lang.Object
-
- java.io.InputStream
-
- org.hsqldb.lib.HsqlByteArrayInputStream
-
- org.hsqldb.rowio.RowInputText
-
- org.hsqldb.rowio.RowInputTextQuoted
-
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataInput, java.lang.AutoCloseable, 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
-
-
Constructor Summary
Constructors Constructor and Description RowInputTextQuoted(java.lang.String fieldSep, java.lang.String varSep, java.lang.String longvarSep, boolean allQuoted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description byte[]getBuffer()longgetPos()intgetSize()java.lang.ObjectreadData(Type type)java.lang.Object[]readData(Type[] colTypes)reads row data from a stream using the JDBC types in colTypesjava.lang.StringreadLine()voidresetBlock(long filepos, int rowsize)Used to reset the row, ready for a new row to be written into the byte[] buffer by an external routine.voidresetRow(long filepos, int rowsize)Used to reset the row, ready for a new row to be written into the byte[] buffer by an external routine.voidsetSource(java.lang.String text, long pos, int byteSize)intskipBytes(int n)-
Methods inherited from class org.hsqldb.rowio.RowInputText
getLineNumber, readInt, readLong, readShort, readString, readType, reset, skippedLine
-
Methods inherited from class org.hsqldb.lib.HsqlByteArrayInputStream
available, close, mark, markSupported, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readUnsignedByte, readUnsignedShort, readUTF, skip
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hsqldb.rowio.RowInputInterface
getBuffer, getPos, getSize, readByte, readChar, readData, resetBlock, resetRow
-
-
-
-
Constructor Detail
-
RowInputTextQuoted
public RowInputTextQuoted(java.lang.String fieldSep, java.lang.String varSep, java.lang.String longvarSep, boolean allQuoted)
-
-
Method Detail
-
setSource
public void setSource(java.lang.String text, long pos, int byteSize)- Overrides:
setSourcein classRowInputText
-
getPos
public long getPos()
-
getSize
public int getSize()
-
readData
public java.lang.Object[] readData(Type[] colTypes) throws java.io.IOException
reads row data from a stream using the JDBC types in colTypes- Parameters:
colTypes-- Throws:
java.io.IOException
-
readData
public java.lang.Object readData(Type type) throws java.io.IOException
- Throws:
java.io.IOException
-
resetRow
public void resetRow(long filepos, int rowsize)Used to reset the row, ready for a new row to be written into the byte[] buffer by an external routine.
-
resetBlock
public void resetBlock(long filepos, int rowsize)Used to reset the row, ready for a new row to be written into the byte[] buffer by an external routine.
-
getBuffer
public byte[] getBuffer()
-
skipBytes
public int skipBytes(int n) throws java.io.IOException- Specified by:
skipBytesin interfacejava.io.DataInput- Overrides:
skipBytesin classHsqlByteArrayInputStream- Throws:
java.io.IOException
-
readLine
public java.lang.String readLine() throws java.io.IOException- Specified by:
readLinein interfacejava.io.DataInput- Overrides:
readLinein classHsqlByteArrayInputStream- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG