public class SimpleFeatureIO extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BIG_STRING |
static int |
MAX_BYTES_LENGTH |
| Constructor and Description |
|---|
SimpleFeatureIO(File file,
SimpleFeatureType schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean deleteFile)
Closes the IO, eventually deleting the file in the process
|
boolean |
endOfFile()
Returns true if the end of file has been reached
|
long |
getOffset()
Returns the current reading position in the file
|
SimpleFeature |
read()
Reads the next feature form the file
|
void |
seek(long offset)
Moves the IO to the specified offset in the file
|
String |
toString() |
void |
write(SimpleFeature sf)
Writes the feature to the file
|
public static final int MAX_BYTES_LENGTH
public static final String BIG_STRING
public SimpleFeatureIO(File file, SimpleFeatureType schema) throws FileNotFoundException
FileNotFoundExceptionpublic void write(SimpleFeature sf) throws IOException
IOExceptionpublic SimpleFeature read() throws IOException
IOExceptionpublic void seek(long offset)
throws IOException
IOExceptionpublic long getOffset()
throws IOException
IOExceptionpublic boolean endOfFile()
throws IOException
IOExceptionpublic void close(boolean deleteFile)
throws IOException
IOExceptionCopyright © 1996–2021 Geotools. All rights reserved.