| java.lang.Object org.geotools.data.mif.MIFStringTokenizer
All known Subclasses: org.geotools.data.mif.MIFFileTokenizer,
MIFStringTokenizer | public class MIFStringTokenizer (Code) | | Simple tokenizer class
author: Luca S. Percich, AMA-MI version: $Id: MIFStringTokenizer.java 29429 2008-02-23 10:01:04Z aaime $ |
MIFStringTokenizer | public MIFStringTokenizer()(Code) | | Builds a tokenizer
|
getLine | public String getLine()(Code) | | DOCUMENT ME!
DOCUMENT ME! |
getToken | public String getToken(char separator, boolean nextLineIfEmpty, boolean quotedStrings) throws ParseException(Code) | | Cuts the first token from line buffer using the given separator, taking
in to account string delimiters if needed
Strings might be delimited by double quotes. Escaping char is a double
quote, i.e. "\"" becomes """".
Parameters: separator - Character used as token separator. Parameters: nextLineIfEmpty - If the returned token is empty, try to read itfrom the next line. Parameters: quotedStrings - If true, expects a quoted string and read it,otherwise treats the double quotes as a normal char. The parsed token throws: ParseException - DOCUMENT ME! |
getToken | protected String getToken(char separator, boolean nextLineIfEmpty) throws ParseException(Code) | | DOCUMENT ME!
Parameters: separator - DOCUMENT ME! Parameters: nextLineIfEmpty - DOCUMENT ME! DOCUMENT ME! throws: ParseException - DOCUMENT ME! |
getToken | protected String getToken(char separator) throws ParseException(Code) | | DOCUMENT ME!
Parameters: separator - DOCUMENT ME! DOCUMENT ME! throws: ParseException - DOCUMENT ME! |
getToken | protected String getToken() throws ParseException(Code) | | DOCUMENT ME!
DOCUMENT ME! throws: ParseException - DOCUMENT ME! |
isEmpty | public boolean isEmpty()(Code) | | Check for non-empty line buffer
true if current line buffer is not empty |
putToken | public void putToken(String tok)(Code) | | Puts a token back to the input buffer so that the next call to getToken will
return this token
Parameters: tok - The token which has to be put back in the input buffer |
readLine | public boolean readLine(String line)(Code) | | "Reads" a line from the given line, and initializes the token.
Parameters: line - true if could read a non empty line (i.e. line != "") |
readLine | public boolean readLine()(Code) | | Tries to read a line from the input buffer (if any) and store it in the
line buffer
True if a non-null string was read |
strQuote | public static String strQuote(String unquoted)(Code) | | DOCUMENT ME!
Parameters: unquoted - DOCUMENT ME! DOCUMENT ME! |
strUnquote | public static String strUnquote(String quoted)(Code) | | DOCUMENT ME!
Parameters: quoted - DOCUMENT ME! DOCUMENT ME! |
|
|