Package | Description |
---|---|
org.geotools.data.shapefile.files |
Modifier and Type | Method and Description |
---|---|
static ShpFileType |
ShpFileType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShpFileType[] |
ShpFileType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Map<ShpFileType,String> |
ShpFiles.getFileNames()
Returns the URLs (in string form) of all the files for the shapefile datastore.
|
Modifier and Type | Method and Description |
---|---|
URL |
ShpFiles.acquireRead(ShpFileType type,
FileReader requestor)
Acquire a URL for read only purposes.
|
File |
ShpFiles.acquireReadFile(ShpFileType type,
FileReader requestor)
Acquire a File for read only purposes.
|
URL |
ShpFiles.acquireWrite(ShpFileType type,
FileWriter requestor)
Acquire a URL for read and write purposes.
|
File |
ShpFiles.acquireWriteFile(ShpFileType type,
FileWriter requestor)
Acquire a File for read and write purposes.
|
boolean |
ShpFiles.exists(ShpFileType fileType)
Returns true if the file exists.
|
String |
ShpFiles.get(ShpFileType type)
Returns the string form of the url that identifies the file indicated by the type parameter
or null if it is known that the file does not exist.
|
InputStream |
ShpFiles.getInputStream(ShpFileType type,
FileReader requestor)
Opens a input stream for the indicated file.
|
OutputStream |
ShpFiles.getOutputStream(ShpFileType type,
FileWriter requestor)
Opens a output stream for the indicated file.
|
ReadableByteChannel |
ShpFiles.getReadChannel(ShpFileType type,
FileReader requestor)
Obtain a ReadableByteChannel from the given URL.
|
StorageFile |
ShpFiles.getStorageFile(ShpFileType type)
Obtains a Storage file for the type indicated.
|
WritableByteChannel |
ShpFiles.getWriteChannel(ShpFileType type,
FileWriter requestor)
Obtain a WritableByteChannel from the given URL.
|
Result<URL,ShpFiles.State> |
ShpFiles.tryAcquireRead(ShpFileType type,
FileReader requestor)
Tries to acquire a URL for read only purposes.
|
Result<URL,ShpFiles.State> |
ShpFiles.tryAcquireWrite(ShpFileType type,
FileWriter requestor)
Tries to acquire a URL for read/write purposes.
|
Constructor and Description |
---|
StorageFile(ShpFiles shpFiles,
File tempFile,
ShpFileType type) |
Copyright © 1996–2019 Geotools. All rights reserved.