Package org.geotools.data.sort
Class SimpleFeatureIO
Object
SimpleFeatureIO
Allows writing and reading features to/from the given file
- Author:
- Andrea Aime - GeoSolutions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(boolean deleteFile) Closes the IO, eventually deleting the file in the processboolean
Returns true if the end of file has been reachedlong
Returns the current reading position in the fileread()
Reads the next feature form the filevoid
seek
(long offset) Moves the IO to the specified offset in the filetoString()
void
write
(SimpleFeature sf) Writes the feature to the file
-
Field Details
-
MAX_BYTES_LENGTH
public static final int MAX_BYTES_LENGTH- See Also:
-
BIG_STRING
- See Also:
-
ENABLE_DESERIALIZATION
- See Also:
-
-
Constructor Details
-
SimpleFeatureIO
- Throws:
FileNotFoundException
-
-
Method Details
-
write
Writes the feature to the file- Throws:
IOException
-
read
Reads the next feature form the file- Throws:
IOException
-
seek
Moves the IO to the specified offset in the file- Throws:
IOException
-
getOffset
Returns the current reading position in the file- Throws:
IOException
-
endOfFile
Returns true if the end of file has been reached- Throws:
IOException
-
close
Closes the IO, eventually deleting the file in the process- Throws:
IOException
-
toString
-