Top Description Fields Constructors Methods
org.hsqldb.scriptio

public Class ScriptReaderText

extends ScriptReaderBase
Class Inheritance
Known Direct Subclasses
org.hsqldb.scriptio.ScriptReaderDecode
Imports
java.io.BufferedInputStream, .EOFException, .IOException, .InputStream, java.util.zip.GZIPInputStream, org.hsqldb.Database, .HsqlException, .Session, .Statement, .StatementTypes, org.hsqldb.error.Error, .ErrorCode, org.hsqldb.lib.LineReader, .StringConverter, org.hsqldb.lib.java.JavaSystem, org.hsqldb.map.ValuePool, org.hsqldb.persist.RowInsertInterface, .RowInsertSimple, org.hsqldb.result.Result, org.hsqldb.rowio.RowInputTextLog, org.hsqldb.types.Type

Handles operations involving reading back a script or log file written out by ScriptWriterText. This implementation corresponds to ScriptWriterText.
Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
1.7.2
Version
2.7.0

Field Summary

Modifier and TypeField and Description
pack-priv InputStream
pack-priv LineReader
pack-priv GZIPInputStream
pack-priv InputStream
pack-priv boolean
pack-priv RowInputTextLog
Inherited from org.hsqldb.scriptio.ScriptReaderBase:
currentSchemacurrentSequencecurrentStorecurrentTabledatabaseerrorLoggerfileNamePathinserterlineCountrawStatementrowDatasequenceValuesessionChangedsessionNumberstatementstatementType

Constructor Summary

AccessConstructor and Description
pack-priv
public
ScriptReaderText(Database db, String fileName, boolean compressed)

Method Summary

Modifier and TypeMethod and Description
public void
pack-priv HsqlException
getError(Throwable t, long lineCount)

private void
pack-priv void
public void
protected void
public void
public boolean
Inherited from org.hsqldb.scriptio.ScriptReaderBase:
getCurrentSchemagetCurrentTablegetDatagetFileNamePathgetLineNumbergetLoggedStatementgetSessionNumbergetStatementTypesetInserter

Field Detail

bufferedStreamback to summary
pack-priv InputStream bufferedStream
dataStreamInback to summary
pack-priv LineReader dataStreamIn
gzipStreamback to summary
pack-priv GZIPInputStream gzipStream
inputStreamback to summary
pack-priv InputStream inputStream
isInsertback to summary
pack-priv boolean isInsert
rowInback to summary
pack-priv RowInputTextLog rowIn

Constructor Detail

ScriptReaderTextback to summary
pack-priv ScriptReaderText(Database db, String fileName)
ScriptReaderTextback to summary
public ScriptReaderText(Database db, String fileName, boolean compressed) throws IOException

Method Detail

closeback to summary
public void close()

Implements abstract org.hsqldb.scriptio.ScriptReaderBase.close.

getErrorback to summary
pack-priv HsqlException getError(Throwable t, long lineCount)
handleErrorback to summary
private void handleError(HsqlException e)
processStatementback to summary
pack-priv void processStatement(Session session)
readAllback to summary
public void readAll(Session session)

Implements abstract org.hsqldb.scriptio.ScriptReaderBase.readAll.

readDDLback to summary
protected void readDDL(Session session)

Implements abstract org.hsqldb.scriptio.ScriptReaderBase.readDDL.

readExistingDataback to summary
public void readExistingData(Session session)

Implements abstract org.hsqldb.scriptio.ScriptReaderBase.readExistingData.

readLoggedStatementback to summary
public boolean readLoggedStatement(Session session)

Implements abstract org.hsqldb.scriptio.ScriptReaderBase.readLoggedStatement.