Top Description Fields Constructors Methods
org.hsqldb.persist

public final Class TextFileSettings

extends Object
Class Inheritance
Imports
java.io.UnsupportedEncodingException, org.hsqldb.error.Error, .ErrorCode

Parser and container for text table settings.
Authors
Bob Preston (sqlbob@users dot sourceforge.net), Fred Toussi (fredt@users dot sourceforge.net)
Since
2.2.6
Version
2.7.3

Field Summary

Modifier and TypeField and Description
pack-priv static final char
private static final byte[]
pack-priv byte[]
pack-priv byte[]
public String
public static final char
pack-priv String
pack-priv static final char
public String
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
public static final char
public String
pack-priv int
pack-priv int
public static final String
public String
public char
pack-priv char
private static final byte[]
public String

Constructor Summary

AccessConstructor and Description
pack-priv
TextFileSettings(HsqlDatabaseProperties dbProps, String settingsString)

The source string for a cached table is evaluated and the parameters are used to open the source file.

Method Summary

Modifier and TypeMethod and Description
pack-priv String
pack-priv int
pack-priv int
pack-priv void
setLittleEndianByteOrderMark()

for UTF-16 with BOM in file

private void
private static String
private static String
translateSep(String sep, boolean isProperty)

Translates the escaped characters in a separator string and returns the non-escaped string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BACKSLASH_CHARback to summary
pack-priv static final char BACKSLASH_CHAR
BYTES_NLback to summary
private static final byte[] BYTES_NL
bytesForLineEndback to summary
pack-priv byte[] bytesForLineEnd
bytesForSpaceback to summary
pack-priv byte[] bytesForSpace
charEncodingback to summary
public String charEncoding
CR_CHARback to summary
public static final char CR_CHAR
dataFileNameback to summary
pack-priv String dataFileName
DOUBLE_QUOTE_CHARback to summary
pack-priv static final char DOUBLE_QUOTE_CHAR
fsback to summary
public String fs
hasUTF16BOMback to summary
public boolean hasUTF16BOM
isAllQuotedback to summary
public boolean isAllQuoted
isIgnoreFirstback to summary
public boolean isIgnoreFirst
isLittleEndianback to summary
public boolean isLittleEndian
isNullDefback to summary
public boolean isNullDef
isQuotedback to summary
public boolean isQuoted
isUTF16back to summary
public boolean isUTF16
isUTF8back to summary
public boolean isUTF8
LF_CHARback to summary
public static final char LF_CHAR
lvsback to summary
public String lvs
maxCacheBytesback to summary
pack-priv int maxCacheBytes
maxCacheRowsback to summary
pack-priv int maxCacheRows
NLback to summary
public static final String NL
qcback to summary
public String qc
quoteCharback to summary
public char quoteChar
singleSeparatorback to summary
pack-priv char singleSeparator
SPback to summary
private static final byte[] SP
vsback to summary
public String vs

Constructor Detail

TextFileSettingsback to summary
pack-priv TextFileSettings(HsqlDatabaseProperties dbProps, String settingsString)

The source string for a cached table is evaluated and the parameters are used to open the source file.

Settings are used in this order of precedence: (1) settings specified in the source string for the table (2) global database settings (3) program defaults

Method Detail

getFileNameback to summary
pack-priv String getFileName()
getMaxCacheBytesback to summary
pack-priv int getMaxCacheBytes()
getMaxCacheRowsback to summary
pack-priv int getMaxCacheRows()
setLittleEndianByteOrderMarkback to summary
pack-priv void setLittleEndianByteOrderMark()

for UTF-16 with BOM in file

setSpaceAndLineEndback to summary
private void setSpaceAndLineEnd()
translateSepback to summary
private static String translateSep(String sep)
translateSepback to summary
private static String translateSep(String sep, boolean isProperty)

Translates the escaped characters in a separator string and returns the non-escaped string.