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
FileNotFoundException
public void write(SimpleFeature sf) throws IOException
sf
- IOException
public SimpleFeature read() throws IOException
IOException
public void seek(long offset) throws IOException
offset
- IOException
public long getOffset() throws IOException
IOException
public boolean endOfFile() throws IOException
IOException
public void close(boolean deleteFile) throws IOException
deleteFile
- IOException
Copyright © 1996–2019 Geotools. All rights reserved.