Java Doc for AbstractParser.java in  » GIS » GeoTools-2.4.1 » org » geotools » referencing » wkt » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.referencing.wkt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.text.Format
      org.geotools.referencing.wkt.AbstractParser

All known Subclasses:   org.geotools.referencing.wkt.MathTransformParser,
AbstractParser
abstract public class AbstractParser extends Format (Code)
Base class for Well Know Text (WKT) parser.
since:
   2.0
version:
   $Id: AbstractParser.java 25477 2007-05-10 13:01:00Z desruisseaux $
author:
   Remi Eve
author:
   Martin Desruisseaux
See Also:    Well Know Text specification
See Also:    OGC WKT Coordinate System Issues


Field Summary
final  Symbolssymbols
     The symbols to use for parsing WKT.

Constructor Summary
public  AbstractParser(Symbols symbols)
     Constructs a parser using the specified set of symbols.

Method Summary
public  StringBufferformat(Object object, StringBuffer toAppendTo, FieldPosition pos)
     Format the specified object as a Well Know Text.
public  CitationgetAuthority()
     Returns the preferred authority for formatting WKT entities.
final protected  ElementgetTree(String text, ParsePosition position)
     Returns a tree of Element for the specified text.
public  StringgetWarning()
     If a warning occured during the last WKT , returns the warning.
public  booleanisColorEnabled()
     Returns true if syntax coloring is enabled.
abstract protected  Objectparse(Element element)
     Parses the next element in the specified Well Know Text (WKT) tree.
Parameters:
  element - The element to be parsed.
final  NumberparseNumber(String text, ParsePosition position)
     Parse the number at the given position.
final public  ObjectparseObject(String text)
     Parses a Well Know Text (WKT).
Parameters:
  text - The text to be parsed.
final public  ObjectparseObject(String text, ParsePosition position)
     Parses a Well Know Text (WKT).
Parameters:
  text - The text to be parsed.
Parameters:
  position - The position to start parsing from.
public  voidreformat(BufferedReader in, Writer out, PrintWriter err)
     Read WKT strings from an input stream and reformat them to the specified output stream.
static  voidreportError(PrintWriter err, String line, int errorOffset)
     Report a failure while parsing the specified line.
Parameters:
  err - The stream where to report the failure.
Parameters:
  line - The line that failed.
Parameters:
  errorOffset - The error offset in the specified line.
public  voidsetAuthority(Citation authority)
     Set the preferred authority for formatting WKT entities.
public  voidsetColorEnabled(boolean enabled)
     Enables or disables syntax coloring on ANSI X3.64 (aka ECMA-48 and ISO/IEC 6429) compatible terminal.

Field Detail
symbols
final Symbols symbols(Code)
The symbols to use for parsing WKT.




Constructor Detail
AbstractParser
public AbstractParser(Symbols symbols)(Code)
Constructs a parser using the specified set of symbols.




Method Detail
format
public StringBuffer format(Object object, StringBuffer toAppendTo, FieldPosition pos)(Code)
Format the specified object as a Well Know Text. Formatting will uses the same set of symbols than the one used for parsing.
See Also:   AbstractParser.getWarning



getAuthority
public Citation getAuthority()(Code)
Returns the preferred authority for formatting WKT entities. The AbstractParser.format format methods will uses the name specified by this authority, if available.



getTree
final protected Element getTree(String text, ParsePosition position) throws ParseException(Code)
Returns a tree of Element for the specified text.
Parameters:
  text - The text to parse.
Parameters:
  position - In input, the position where to start parsing from.In output, the first character after the separator.



getWarning
public String getWarning()(Code)
If a warning occured during the last WKT , returns the warning. Otherwise returns null . The warning is cleared every time a new object is formatted.
since:
   2.4



isColorEnabled
public boolean isColorEnabled()(Code)
Returns true if syntax coloring is enabled. By default, syntax coloring is disabled.
since:
   2.4



parse
abstract protected Object parse(Element element) throws ParseException(Code)
Parses the next element in the specified Well Know Text (WKT) tree.
Parameters:
  element - The element to be parsed. The object.
throws:
  ParseException - if the element can't be parsed.



parseNumber
final Number parseNumber(String text, ParsePosition position)(Code)
Parse the number at the given position.



parseObject
final public Object parseObject(String text) throws ParseException(Code)
Parses a Well Know Text (WKT).
Parameters:
  text - The text to be parsed. The object.
throws:
  ParseException - if the string can't be parsed.



parseObject
final public Object parseObject(String text, ParsePosition position)(Code)
Parses a Well Know Text (WKT).
Parameters:
  text - The text to be parsed.
Parameters:
  position - The position to start parsing from. The object.



reformat
public void reformat(BufferedReader in, Writer out, PrintWriter err) throws IOException(Code)
Read WKT strings from an input stream and reformat them to the specified output stream. WKT strings are read until the the end-of-stream, or until an unparsable WKT has been hit. In this later case, an error message is formatted to the specified error stream.
Parameters:
  in - The input stream.
Parameters:
  out - The output stream.
Parameters:
  err - The error stream.
throws:
  IOException - if an error occured while reading from the input streamor writting to the output stream.



reportError
static void reportError(PrintWriter err, String line, int errorOffset)(Code)
Report a failure while parsing the specified line.
Parameters:
  err - The stream where to report the failure.
Parameters:
  line - The line that failed.
Parameters:
  errorOffset - The error offset in the specified line. This is usually thevalue provided by ParseException.getErrorOffset.



setAuthority
public void setAuthority(Citation authority)(Code)
Set the preferred authority for formatting WKT entities. The AbstractParser.format format methods will uses the name specified by this authority, if available.



setColorEnabled
public void setColorEnabled(boolean enabled)(Code)
Enables or disables syntax coloring on ANSI X3.64 (aka ECMA-48 and ISO/IEC 6429) compatible terminal. This apply only when formatting text. By default, syntax coloring is disabled. When enabled, AbstractParser.format(Object) tries to highlight most of the elements compared by org.geotools.referencing.CRS.equalsIgnoreMetadata .
since:
   2.4



Methods inherited from java.text.Format
public Object clone()(Code)(Java Doc)
final public String format(Object obj)(Code)(Java Doc)
abstract public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition pos)(Code)(Java Doc)
public AttributedCharacterIterator formatToCharacterIterator(Object obj)(Code)(Java Doc)
abstract public Object parseObject(String source, ParsePosition pos)(Code)(Java Doc)
public Object parseObject(String source) throws ParseException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.