public class ArgumentWordReader extends WordReader
WordReader that returns words from an argument list.
Single arguments are split into individual words if necessary.| Constructor and Description |
|---|
ArgumentWordReader(String[] arguments,
File baseDir)
Creates a new ArgumentWordReader for the given arguments, with the
given base directory.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
lineLocationDescription()
Returns a readable description of the current WordReader position.
|
static void |
main(String[] args)
Test application that prints out the individual words of
the argument list.
|
protected String |
nextLine()
Reads a line from this WordReader, or from one of its active included
WordReader objects.
|
close, getBaseDir, includeWordReader, lastComments, locationDescription, nextWord, setBaseDirprotected String nextLine() throws IOException
WordReadernextLine in class WordReaderIOExceptionprotected String lineLocationDescription()
WordReaderlineLocationDescription in class WordReaderpublic static void main(String[] args)
Copyright © 2015. All Rights Reserved.