|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.text.Format
org.geotools.resources.WKTFormat
org.geotools.referencing.wkt.AbstractFormat.
The base class for Well Know Text (WKT) parser and formatter. This base class contains information about the symbols to use (opening and closing bracket, element separator, etc.). This is a relatively light object compared to their subclasses and can be used when parsing are not needed.
| Nested Class Summary |
| Nested classes inherited from class java.text.Format |
java.text.Format.Field |
| Field Summary | |
char |
closingBracket
Deprecated. The character to use for closing element's parameters. |
char |
elementSeparator
Deprecated. The character to use as an element separator. |
java.util.Locale |
locale
Deprecated. The locale for number parsing and formatting. |
java.text.NumberFormat |
number
Deprecated. The object to use for parsing and formatting numbers. |
char |
openingBracket
Deprecated. The character to use for openining element's parameters. |
char |
textDelimitor
Deprecated. The character to use as text delimitor. |
| Constructor Summary | |
WKTFormat(java.util.Locale locale)
Deprecated. Construct a format for the specified locale. |
|
| Method Summary | |
protected WKTElement |
getTree(java.lang.String text,
java.text.ParsePosition position)
Deprecated. Returns a tree of WKTElement for the specified text. |
protected abstract java.lang.Object |
parse(WKTElement element)
Deprecated. Parses the next element in the specified Well Know Text (WKT) tree. |
java.lang.Object |
parseObject(java.lang.String text)
Deprecated. Parses a Well Know Text (WKT). |
java.lang.Object |
parseObject(java.lang.String text,
java.text.ParsePosition position)
Deprecated. Parses a Well Know Text (WKT). |
| Methods inherited from class java.text.Format |
clone, format, format, formatToCharacterIterator |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final java.util.Locale locale
public final java.text.NumberFormat number
NumberFormat object are usually not thread safe.
Consider using this format in a synchronized block if thread safe
behavior is wanted.
public final char elementSeparator
','.
public final char textDelimitor
'"'.
public final char openingBracket
'[' or '('.
This character is used for formatting WKT.
public final char closingBracket
']' or ')'.
This character is used for formatting WKT.
| Constructor Detail |
public WKTFormat(java.util.Locale locale)
locale - The locale for parsing and formatting numbers.| Method Detail |
protected final WKTElement getTree(java.lang.String text,
java.text.ParsePosition position)
throws java.text.ParseException
WKTElement for the specified text.
text - The text to parse.position - In input, the position where to start parsing from.
In output, the first character after the separator.
java.text.ParseException
protected abstract java.lang.Object parse(WKTElement element)
throws java.text.ParseException
element - The element to be parsed.
java.text.ParseException - if the element can't be parsed.
public final java.lang.Object parseObject(java.lang.String text)
throws java.text.ParseException
text - The text to be parsed.
java.text.ParseException - if the string can't be parsed.
public final java.lang.Object parseObject(java.lang.String text,
java.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 | ||||||||||