public class AsciiParser<C extends ApplicationContext> extends AbstractAsciiParser<C,AsciiLine>
AbstractAsciiParser
with a AsciiLine
and thus provides support for
break-characters and block-comments.currentLine, DEFAULT_BUFF_SIZE
childTaskRef, isTestMode, monitorController, resultRef, stateFlag
Constructor and Description |
---|
AsciiParser(C ctx,
java.io.File file) |
AsciiParser(C ctx,
FileInfo fileInfo,
java.io.InputStream stream) |
AsciiParser(C ctx,
FileInfo fileInfo,
java.io.InputStream stream,
int buffSize) |
AsciiParser(C ctx,
java.io.File file,
int buffSize) |
AsciiParser(C ctx,
ProgressFileInputStream progressStream) |
AsciiParser(C ctx,
ProgressFileInputStream progressStream,
int buffSize) |
AsciiParser(C ctx,
ProgressInputStream progressStream) |
AsciiParser(C ctx,
ProgressInputStream progressStream,
int buffSize) |
Modifier and Type | Method and Description |
---|---|
protected AsciiLine |
createAsciiLine(byte[] data)
Creates the required type of
AsciiLine for this parser. |
AsciiLine |
getNextLine()
Fetches the next line into buffer
|
AsciiLine |
nextLine()
Fetches the next line into buffer and returns it.
|
AsciiWord |
nextWord()
Fetches the next word, whereas break-characters and block-comments are returned as single words by their own.
|
void |
setBlockCommentChar(java.lang.Character blockCommentChar)
Sets the block comment character.
|
void |
setBreakChars(java.lang.String breakChars)
Sets additional word break-characters which are used as word boundaries but unlike white spaces they are returned
as a word by their own.
|
checkedByte, close, createFileInputStream, executeAsync, getCurrentWord, getFileInfo, getLineNumber, getNextWord, getReadByteCount, getReadOperationCount, getRestOfLine, nextDouble, nextInt, nextLong, nextShort, nextString, openFile, performRead, setLineCommentChar, skipLines, skipRestOfLine, skipWords
addMonitor, checkCancelled, checkForErrorAndRethrow, clearMonitors, createRunStateFlag, doOnCancel, doOnFailure, executeSubTask, executeSync, getError, getMaxProgressSteps, getMonitorCount, getMonitors, getName, getProgressStepCount, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, handleFinish, handleStart, handleSuccess, hasError, hasMonitor, isCancellable, notifyProceeded, registerTaskStateChange, removeMonitor, resetProgress, setCancellable, setLogLevel, setMaxProgressSteps, setMonitor, setName, setName, setResult, setRunStateFlag, setTaskId, setType, shouldFireMonitor, sleepChecked, wasCancelled
getApplicationConfig, getApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
configureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getApplicationContext
getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannel
public AsciiParser(C ctx, java.io.File file, int buffSize)
public AsciiParser(C ctx, java.io.File file)
public AsciiParser(C ctx, ProgressFileInputStream progressStream, int buffSize)
public AsciiParser(C ctx, ProgressFileInputStream progressStream)
public AsciiParser(C ctx, ProgressInputStream progressStream, int buffSize)
public AsciiParser(C ctx, ProgressInputStream progressStream)
protected AsciiLine createAsciiLine(byte[] data)
AbstractAsciiParser
AsciiLine
for this parser.createAsciiLine
in class AbstractAsciiParser<C extends ApplicationContext,AsciiLine>
public final AsciiLine nextLine() throws java.io.IOException
AbstractAsciiParser
nextLine
in class AbstractAsciiParser<C extends ApplicationContext,AsciiLine>
java.io.EOFException
- if EOF is reachedjava.io.IOException
public AsciiLine getNextLine() throws java.io.IOException
AbstractAsciiParser
getNextLine
in class AbstractAsciiParser<C extends ApplicationContext,AsciiLine>
java.io.IOException
public final void setBlockCommentChar(java.lang.Character blockCommentChar)
public final void setBreakChars(java.lang.String breakChars)
public final AsciiWord nextWord() throws java.io.IOException
nextWord
in class AbstractAsciiParser<C extends ApplicationContext,AsciiLine>
java.io.IOException
- if EOF is reachedCopyright © 2011 EsprIT-Systems. All Rights Reserved.