|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.text.Format org.geotools.referencing.wkt.AbstractParser
Base class for Well Know Text (WKT) parser.
Nested Class Summary |
Nested classes inherited from class java.text.Format |
java.text.Format.Field |
Constructor Summary | |
AbstractParser(Symbols symbols)
Constructs a parser using the specified set of symbols. |
Method Summary | |
java.lang.StringBuffer |
format(java.lang.Object object,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Format the specified object as a Well Know Text. |
org.opengis.metadata.citation.Citation |
getAuthority()
Returns the preferred authority for formatting WKT entities. |
protected Element |
getTree(java.lang.String text,
java.text.ParsePosition position)
Returns a tree of Element for the specified text. |
protected abstract java.lang.Object |
parse(Element element)
Parses the next element in the specified Well Know Text (WKT) tree. |
java.lang.Object |
parseObject(java.lang.String text)
Parses a Well Know Text (WKT). |
java.lang.Object |
parseObject(java.lang.String text,
java.text.ParsePosition position)
Parses a Well Know Text (WKT). |
void |
reformat(java.io.BufferedReader in,
java.io.Writer out,
java.io.PrintWriter err)
Read WKT strings from an input stream and reformat them to the specified output stream. |
void |
setAuthority(org.opengis.metadata.citation.Citation authority)
Set the preferred authority for formatting WKT entities. |
Methods inherited from class java.text.Format |
clone, format, formatToCharacterIterator |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractParser(Symbols symbols)
Method Detail |
public org.opengis.metadata.citation.Citation getAuthority()
format
methods will uses the name specified
by this authority, if available.
public void setAuthority(org.opengis.metadata.citation.Citation authority)
format
methods will uses the name specified
by this authority, if available.
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.
protected abstract java.lang.Object parse(Element element) throws java.text.ParseException
element
- The element to be parsed.
java.text.ParseException
- if the element can't be parsed.protected final Element getTree(java.lang.String text, java.text.ParsePosition position) throws java.text.ParseException
Element
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
public java.lang.StringBuffer format(java.lang.Object object, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
public void reformat(java.io.BufferedReader in, java.io.Writer out, java.io.PrintWriter err) throws java.io.IOException
in
- The input stream.out
- The output stream.err
- The error stream.
java.io.IOException
- if an error occured while reading from the input stream
or writting to the output stream.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |