-
public class ShapeFileReaderReads an ESRI Shape File from an InputStream and provides its contents as simple Java objects.
-
-
Field Summary
Fields Modifier and Type Field Description private ShapeFileHeaderheader
-
Constructor Summary
Constructors Constructor Description ShapeFileReader(InputStream is)Reads a Shape File from an InputStream using the default validationpreferences. ShapeFileReader(InputStream is, ValidationPreferences preferences)Reads a Shape File from an InputStream using the specified validationpreferences.
-
Method Summary
Modifier and Type Method Description ShapeFileHeadergetHeader()Returns the shape's header. AbstractShapenext()Reads one shape from the InputStream. -
-
Constructor Detail
-
ShapeFileReader
ShapeFileReader(InputStream is)
Reads a Shape File from an InputStream using the default validationpreferences.- Parameters:
is- the InputStream to be read.
-
ShapeFileReader
ShapeFileReader(InputStream is, ValidationPreferences preferences)
Reads a Shape File from an InputStream using the specified validationpreferences.- Parameters:
is- the InputStream to be read.preferences- Customized validation preferences.
-
-
Method Detail
-
getHeader
ShapeFileHeader getHeader()
Returns the shape's header.
-
next
AbstractShape next()
Reads one shape from the InputStream.
-
-
-
-