abstract class FormatFactory<T extends Format> extends java.lang.Object
A FormatFactory creates a Format from an input source which is usually a File, URL, or InputStream
<
- T > The type FormatConstructor and description |
---|
FormatFactory
() |
Type Params | Return Type | Name and description |
---|---|---|
|
T |
create(java.lang.Object input) Create a Format from the input source or return null. |
|
protected Format |
createFromFile(java.io.File file) Create a Format from the File. |
|
protected Format |
createFromFormat(AbstractGridFormat gridFormat, java.lang.Object source) Create a Format from the GeoTools AbstractGridFormat and input source if possible. |
|
protected java.util.List<java.lang.String> |
getFileExtensions() Get a List of the file extensions that this Format supports |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a Format from the input source or return null.
input
- The input source which is usually a File, URL, or InputStreamCreate a Format from the File.
file
- The FileCreate a Format from the GeoTools AbstractGridFormat and input source if possible. Otherwise return null.
gridFormat
- The GeoTools AbstractGridFormatsource
- The input sourceGet a List of the file extensions that this Format supports