org.geotools.data.mif
Class MIFFileTokenizer

java.lang.Object
  extended byorg.geotools.data.mif.MIFStringTokenizer
      extended byorg.geotools.data.mif.MIFFileTokenizer

public class MIFFileTokenizer
extends MIFStringTokenizer

Simple tokenizer class for BufferedReaders

Version:
$Id: MIFFileTokenizer.java 17700 2006-01-22 23:30:39Z desruisseaux $
Author:
Luca S. Percich, AMA-MI

Constructor Summary
MIFFileTokenizer(java.io.BufferedReader aReader)
          Builds a tokenizer for a BufferedReader
 
Method Summary
 void close()
          Closes the associated reader.
 int getLineNumber()
          Returns the current line number
 boolean readLine()
          Stores the next non-null line from file buffer in the line buffer
 
Methods inherited from class org.geotools.data.mif.MIFStringTokenizer
getLine, getToken, getToken, getToken, getToken, isEmpty, ltrim, putToken, readLine, strQuote, strUnquote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MIFFileTokenizer

public MIFFileTokenizer(java.io.BufferedReader aReader)
Builds a tokenizer for a BufferedReader

Parameters:
aReader -
Method Detail

close

public void close()
Closes the associated reader.


readLine

public boolean readLine()
Stores the next non-null line from file buffer in the line buffer

Overrides:
readLine in class MIFStringTokenizer
Returns:
True if a non-null string was read, false if EOF or error

getLineNumber

public int getLineNumber()
Returns the current line number

Returns:


Copyright © GeoTools. All Rights Reserved.