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_SIZEchildTaskRef, 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.
|
byte[] |
setBreakCodes(byte[] codes)
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, getCurrentToRestOfLine, getCurrentWord, getFileInfo, getLineNumber, getNextWord, getReadByteCount, getReadOperationCount, getRestOfLine, isEndOfLineReached, nextDouble, nextInt, nextLong, nextShort, nextString, openFile, performRead, setEncoding, setLineCommentChar, skipLines, skipRestOfLine, skipWordsaddMonitor, checkCancelled, checkForErrorAndRethrow, clearMonitors, createRunStateFlag, doOnCancel, doOnFailure, execute, executeSubTask, 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, wasCancelledgetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetApplicationContextgetLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelpublic 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)
AbstractAsciiParserAsciiLine for this parser.createAsciiLine in class AbstractAsciiParser<C extends ApplicationContext,AsciiLine>public final AsciiLine nextLine() throws java.io.IOException
AbstractAsciiParsernextLine in class AbstractAsciiParser<C extends ApplicationContext,AsciiLine>java.io.EOFException - if EOF is reachedjava.io.IOExceptionpublic final AsciiLine getNextLine() throws java.io.IOException
AbstractAsciiParsergetNextLine in class AbstractAsciiParser<C extends ApplicationContext,AsciiLine>java.io.IOExceptionpublic final void setBlockCommentChar(java.lang.Character blockCommentChar)
public byte[] setBreakCodes(byte[] codes)
public final AsciiWord nextWord() throws java.io.IOException
nextWord in class AbstractAsciiParser<C extends ApplicationContext,AsciiLine>java.io.IOException - if EOF is reachedCopyright © 2014 EsprIT-Systems. All Rights Reserved.