public class LineWordReader extends WordReader
WordReader that returns words from a line number reader.| Constructor and Description |
|---|
LineWordReader(LineNumberReader lineNumberReader,
String description,
File baseDir)
Creates a new LineWordReader for the given input.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the FileWordReader.
|
protected String |
lineLocationDescription()
Returns a readable description of the current WordReader position.
|
protected String |
nextLine()
Reads a line from this WordReader, or from one of its active included
WordReader objects.
|
getBaseDir, includeWordReader, lastComments, locationDescription, nextWord, setBaseDirpublic LineWordReader(LineNumberReader lineNumberReader, String description, File baseDir) throws IOException
IOExceptionprotected String nextLine() throws IOException
WordReadernextLine in class WordReaderIOExceptionprotected String lineLocationDescription()
WordReaderlineLocationDescription in class WordReaderpublic void close()
throws IOException
WordReaderclose in class WordReaderIOExceptionCopyright © 2015. All Rights Reserved.