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
ParseException
IOException
public Geometry read(InStream is) throws IOException, ParseException
IOException
ParseException
protected CoordinateSequence readCoordinateSequence(int numPts, TWKBReader.TWKBMetadata metadata) throws IOException
IOException
protected double readNextDouble(double scale) throws IOException
IOException
Copyright © 1996–2022 Geotools. All rights reserved.