Top Fields Constructors Methods
org.hsqldb.scriptio

public Class ScriptWriterEncode

extends ScriptWriterText
Class Inheritance
Imports
java.io.BufferedOutputStream, .IOException, .OutputStream, java.util.zip.GZIPOutputStream, org.hsqldb.Database, org.hsqldb.error.Error, .ErrorCode, org.hsqldb.lib.FileAccess, .FileUtil, .HsqlByteArrayOutputStream, org.hsqldb.persist.Crypto

Author
Fred Toussi (fredt@users dot sourceforge.net)
Version
2.5.1, 1.9.0

Field Summary

Modifier and TypeField and Description
pack-priv HsqlByteArrayOutputStream
pack-priv Crypto
pack-priv OutputStream
Inherited from org.hsqldb.scriptio.ScriptWriterText:
BYTES_C_ID_INITBYTES_C_ID_TERMBYTES_COMMITBYTES_DELETE_FROMBYTES_INSERT_INTOBYTES_LINE_SEPBYTES_SCHEMABYTES_SEQUENCEBYTES_SEQUENCE_MIDBYTES_TERMBYTES_VALUESBYTES_WHERErowOut

Constructor Summary

AccessConstructor and Description
public
ScriptWriterEncode(Database db, OutputStream outputStream, FileAccess.FileSync descriptor, boolean includeCached, Crypto crypto)

public
ScriptWriterEncode(Database db, String file, boolean includeCached, Crypto crypto)

public

Method Summary

Modifier and TypeMethod and Description
protected void
finishStream()

Overrides org.hsqldb.scriptio.ScriptWriterText.finishStream.

Always use before a final flush()

protected void
openFile()

Overrides org.hsqldb.scriptio.ScriptWriterBase.openFile.

File is opened in append mode although in current usage the file never pre-exists

pack-priv void
Inherited from org.hsqldb.scriptio.ScriptWriterText:
initBufferswriteCommitStatementwriteDataTermwriteDeleteStatementwriteInsertStatementwriteLogStatementwriteOtherStatementwriteRowwriteSequenceStatementwriteSessionIdAndSchemawriteTableInit

Field Detail

byteOutback to summary
pack-priv HsqlByteArrayOutputStream byteOut
cryptoback to summary
pack-priv Crypto crypto
cryptOutback to summary
pack-priv OutputStream cryptOut

Constructor Detail

ScriptWriterEncodeback to summary
public ScriptWriterEncode(Database db, OutputStream outputStream, FileAccess.FileSync descriptor, boolean includeCached, Crypto crypto)
ScriptWriterEncodeback to summary
public ScriptWriterEncode(Database db, String file, boolean includeCached, Crypto crypto)
ScriptWriterEncodeback to summary
public ScriptWriterEncode(Database db, String file, Crypto crypto)

Method Detail

finishStreamback to summary
protected void finishStream()

Overrides org.hsqldb.scriptio.ScriptWriterText.finishStream.

Always use before a final flush()

openFileback to summary
protected void openFile()

Overrides org.hsqldb.scriptio.ScriptWriterBase.openFile.

Doc from org.hsqldb.scriptio.ScriptWriterBase.openFile.

File is opened in append mode although in current usage the file never pre-exists

writeRowOutToFileback to summary
pack-priv void writeRowOutToFile()

Overrides org.hsqldb.scriptio.ScriptWriterText.writeRowOutToFile.