ProGuard

proguard
Class FileWordReader

java.lang.Object
  extended byproguard.WordReader
      extended byproguard.FileWordReader

public class FileWordReader
extends WordReader

A WordReader that returns words from a file or a URL.


Constructor Summary
FileWordReader(String fileName)
          Creates a new FileWordReader for the given file name.
FileWordReader(URL url)
          Creates a new FileWordReader for the given URL.
 
Method Summary
 void close()
          Closes the FileWordReader.
protected  String lineLocationDescription()
          Constructs 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.
 
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

FileWordReader

public FileWordReader(String fileName)
               throws IOException
Creates a new FileWordReader for the given file name.


FileWordReader

public FileWordReader(URL url)
               throws IOException
Creates a new FileWordReader for the given URL.

Method Detail

close

public void close()
           throws IOException
Closes the FileWordReader.

Throws:
IOException

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.

ProGuard