org.hsqldb.rowio
Class RowOutputTextQuoted
- java.lang.Object
-
- java.io.OutputStream
-
- org.hsqldb.lib.HsqlByteArrayOutputStream
-
- org.hsqldb.rowio.RowOutputText
-
- org.hsqldb.rowio.RowOutputTextQuoted
-
- All Implemented Interfaces:
- java.io.Closeable, java.io.DataOutput, java.io.Flushable, java.lang.AutoCloseable, java.lang.Cloneable, 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
-
-
Field Summary
Fields Modifier and Type Field and Description static intCACHED_ROW_160static intCACHED_ROW_170
-
Constructor Summary
Constructors Constructor and Description RowOutputTextQuoted(java.lang.String fieldSep, java.lang.String varSep, java.lang.String longvarSep, boolean allQuoted, java.lang.String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description HsqlByteArrayOutputStreamgetOutputStream()voidwriteData(int l, Type[] types, java.lang.Object[] data, HashMappedList cols, int[] primaryKeys)This method is called directly to write data for a delete statement.voidwriteData(Row row, Type[] types)This method is called to write data for a table row.voidwriteData(Type t, java.lang.Object o)-
Methods inherited from class org.hsqldb.rowio.RowOutputText
duplicate, getSize, getStorageSize, writeEnd, writeInt, writeIntData, writeLong, writeShort, writeSize, writeString, writeType
-
Methods inherited from class org.hsqldb.lib.HsqlByteArrayOutputStream
close, ensureRoom, fill, flush, getBuffer, reset, reset, reset, setPosition, setSize, size, toByteArray, toString, toString, write, write, write, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeChars, writeDouble, writeFloat, writeNoCheck, writeTo, writeUTF
-
-
-
-
Field Detail
-
CACHED_ROW_160
public static final int CACHED_ROW_160
- See Also:
- Constant Field Values
-
CACHED_ROW_170
public static final int CACHED_ROW_170
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RowOutputTextQuoted
public RowOutputTextQuoted(java.lang.String fieldSep, java.lang.String varSep, java.lang.String longvarSep, boolean allQuoted, java.lang.String encoding)
-
-
Method Detail
-
writeData
public void writeData(Row row, Type[] types)
This method is called to write data for a table row.- Specified by:
writeDatain interfaceRowOutputInterface
-
writeData
public void writeData(int l, Type[] types, java.lang.Object[] data, HashMappedList cols, int[] primaryKeys)This method is called directly to write data for a delete statement.- Specified by:
writeDatain interfaceRowOutputInterface
-
writeData
public void writeData(Type t, java.lang.Object o)
-
getOutputStream
public HsqlByteArrayOutputStream getOutputStream()
- Specified by:
getOutputStreamin interfaceRowOutputInterface
-
-
DataMelt 3.0 © DataMelt by jWork.ORG