proguard
Class ArgumentWordReader

java.lang.Object
  extended by proguard.WordReader
      extended by proguard.ArgumentWordReader

public class ArgumentWordReader
extends WordReader

A WordReader that returns words from an argument list. Single arguments are split into individual words if necessary.


Constructor Summary
ArgumentWordReader(java.lang.String[] arguments, java.io.File baseDir)
          Creates a new ArgumentWordReader for the given arguments, with the given base directory.
 
Method Summary
protected  java.lang.String lineLocationDescription()
          Returns a readable description of the current WordReader position.
static void main(java.lang.String[] args)
          Test application that prints out the individual words of the argument list.
protected  java.lang.String nextLine()
          Reads a line from this WordReader, or from one of its active included WordReader objects.
 
Methods inherited from class proguard.WordReader
close, getBaseDir, includeWordReader, lastComments, locationDescription, nextWord, setBaseDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgumentWordReader

public ArgumentWordReader(java.lang.String[] arguments,
                          java.io.File baseDir)
Creates a new ArgumentWordReader for the given arguments, with the given base directory.

Method Detail

nextLine

protected java.lang.String nextLine()
                             throws java.io.IOException
Description copied from class: WordReader
Reads a line from this WordReader, or from one of its active included WordReader objects.

Specified by:
nextLine in class WordReader
Returns:
the read line.
Throws:
java.io.IOException

lineLocationDescription

protected java.lang.String lineLocationDescription()
Description copied from class: WordReader
Returns a readable description of the current WordReader position.

Specified by:
lineLocationDescription in class WordReader
Returns:
the description.

main

public static void main(java.lang.String[] args)
Test application that prints out the individual words of the argument list.