public class DefaultFeatureFile extends Object implements FeatureFile
| Modifier and Type | Field and Description |
|---|---|
protected File |
wrappedFile |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultFeatureFile(File wrappedFile) |
|
DefaultFeatureFile(String path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead() |
protected DefaultFeatureFile |
createFile(File wrappedFile) |
boolean |
exists() |
String |
getAbsolutePath() |
String |
getContent() |
InputStream |
getInputStream() |
String |
getName() |
String |
getPath() |
boolean |
isDirectory() |
long |
lastModified() |
FeatureFile[] |
listFiles() |
URI |
toURI() |
protected final File wrappedFile
public DefaultFeatureFile(String path)
protected DefaultFeatureFile(File wrappedFile)
protected DefaultFeatureFile createFile(File wrappedFile)
public InputStream getInputStream() throws IOException
getInputStream in interface FeatureFileIOExceptionpublic boolean canRead()
canRead in interface FeatureFilepublic boolean exists()
exists in interface FeatureFilepublic String getName()
getName in interface FeatureFilepublic String getPath()
getPath in interface FeatureFilepublic String getAbsolutePath()
getAbsolutePath in interface FeatureFilepublic boolean isDirectory()
isDirectory in interface FeatureFilepublic FeatureFile[] listFiles()
listFiles in interface FeatureFilepublic URI toURI()
toURI in interface FeatureFilepublic String getContent() throws IOException
getContent in interface FeatureFileIOExceptionpublic long lastModified()
lastModified in interface FeatureFileCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.