public class ShapeFileStreamParser
extends java.lang.Object
Constructor and Description |
---|
ShapeFileStreamParser(java.io.InputStream mainFileIS, java.io.InputStream indexFileIS, DBFReader dbfReader, long start)
Creates an instance.
|
ShapeFileStreamParser(java.io.InputStream mainFileIS, java.io.InputStream indexFileIS, long start)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
long |
getPositionInMainFile()
Returns the bytes position in the main file.
|
java.util.Map |
readNextRecord()
Returns a map with the Shapefile attributes including ShapeFileInputFormat.GEOMETRY_ATTRIBUTE.
|
public ShapeFileStreamParser(java.io.InputStream mainFileIS, java.io.InputStream indexFileIS, DBFReader dbfReader, long start)
mainFileIS
- the main file input streamindexFileIS
- the index file input streamdbfReader
- the optional DBF readerstart
- the position of the first byte to process the filepublic ShapeFileStreamParser(java.io.InputStream mainFileIS, java.io.InputStream indexFileIS, long start)
mainFileIS
- the main file input streamindexFileIS
- the index file input streamstart
- the position of the first byte to process the filepublic long getPositionInMainFile()
public java.util.Map readNextRecord() throws java.io.IOException
java.io.IOException
- thrown if an IOException occursCopyright © 2017 Oracle and/or its affiliates. All Rights Reserved.