public class TWKBReader extends Object
This class is designed to support reuse of a single instance to read multiple geometries. This * class is not thread-safe; each thread should create its own instance.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
TWKBReader.TWKBMetadata |
| Modifier and Type | Field and Description |
|---|---|
protected CoordinateSequenceFactory |
csFactory |
| Constructor and Description |
|---|
TWKBReader(GeometryFactory geometryFactory) |
| Modifier and Type | Method and Description |
|---|---|
Geometry |
read(byte[] bytes) |
Geometry |
read(InStream is) |
protected CoordinateSequence |
readCoordinateSequence(int numPts,
TWKBReader.TWKBMetadata metadata) |
protected double |
readNextDouble(double scale) |
public Geometry read(byte[] bytes)
throws ParseException,
IOException
ParseExceptionIOExceptionpublic Geometry read(InStream is)
throws IOException,
ParseException
IOExceptionParseExceptionprotected CoordinateSequence readCoordinateSequence(int numPts,
TWKBReader.TWKBMetadata metadata)
throws IOException
IOExceptionprotected double readNextDouble(double scale)
throws IOException
IOExceptionCopyright © 1996–2021 Geotools. All rights reserved.