|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectParser
public abstract class Parser
Parses Well Known Text (WKT). Parsers are the converse of Formatter.
Like the later, a parser is constructed with a given set of symbols.
Parsers also need a set of factories to be used for instantiating the parsed objects.
In current version, parsers are usually not intended to be subclassed outside this package.
A few exceptions exist, for example ReferencingParser.alterProperties(java.util.Map is one of the
few hooks provided for overriding.
Parsers are not synchronized. It is recommended to create separate parser instances for each thread. If multiple threads access a parser concurrently, it must be synchronized externally.
| referencing/geotk-referencing (download) | View source code for this class |
| Method Summary | |
|---|---|
Object |
parseObject(String text)
Parses a Well Know Text (WKT). |
Object |
parseObject(String text,
ParsePosition position)
Parses a Well Know Text (WKT). |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public final Object parseObject(String text)
throws ParseException
text - The text to be parsed.
ParseException - if the string can't be parsed.
public final Object parseObject(String text,
ParsePosition position)
text - The text to be parsed.position - The position to start parsing from.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||