Package org.locationtech.jts.io.gml2
Class GMLHandler.Handler
- java.lang.Object
-
- org.locationtech.jts.io.gml2.GMLHandler.Handler
-
- Enclosing class:
- GMLHandler
static class GMLHandler.Handler extends java.lang.Object
This class is intended to log the SAX activity within a given element until its termination. At this time, a new object of value is created and passed to the parent. An object of value is typically either java.lang.* or a JTS Geometry This class is not intended for use outside this distribution, and may change in subsequent versions.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.xml.sax.Attributes
attrs
protected java.util.List
children
protected GeometryStrategies.ParseStrategy
strategy
protected java.lang.StringBuffer
text
-
Constructor Summary
Constructors Constructor Description Handler(GeometryStrategies.ParseStrategy strategy, org.xml.sax.Attributes attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addText(java.lang.String str)
Caches text for the futurejava.lang.Object
create(GeometryFactory gf)
void
keep(java.lang.Object obj)
Store param for the future
-
-
-
Field Detail
-
attrs
protected org.xml.sax.Attributes attrs
-
strategy
protected GeometryStrategies.ParseStrategy strategy
-
text
protected java.lang.StringBuffer text
-
children
protected java.util.List children
-
-
Constructor Detail
-
Handler
public Handler(GeometryStrategies.ParseStrategy strategy, org.xml.sax.Attributes attributes)
- Parameters:
strategy
-attributes
- Nullable
-
-
Method Detail
-
addText
public void addText(java.lang.String str)
Caches text for the future- Parameters:
str
-
-
keep
public void keep(java.lang.Object obj)
Store param for the future- Parameters:
obj
-
-
create
public java.lang.Object create(GeometryFactory gf) throws org.xml.sax.SAXException
- Parameters:
gf
- GeometryFactory- Returns:
- Parsed Object
- Throws:
org.xml.sax.SAXException
-
-