ProGuard

proguard
Class ArgumentWordReader

java.lang.Object
  extended byproguard.WordReader
      extended byproguard.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(String[] arguments)
          Creates a new ArgumentWordReader for the given arguments.
 
Method Summary
protected  String lineLocationDescription()
          Constructs 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.
 
Methods inherited from class proguard.WordReader
includeWordReader, lastComments, locationDescription, nextWord
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArgumentWordReader

public ArgumentWordReader(String[] arguments)
Creates a new ArgumentWordReader for the given arguments.

Method Detail

nextLine

protected String nextLine()
                   throws 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:
IOException

lineLocationDescription

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

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

main

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


ProGuard