| Constructor and Description |
|---|
FileSystemFile(File file) |
FileSystemFile(FileSystemFile parent,
String child) |
FileSystemFile(String path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
File |
getFile() |
InputStream |
getInputStream()
Returns a
InputStream for the data. |
long |
getLastModified()
Returns the last modified date of the content.
|
long |
getLength()
Returns the content length.
|
String |
getName() |
String |
getPath() |
int |
hashCode() |
boolean |
isDirectory() |
boolean |
isFile() |
String |
toString() |
public FileSystemFile(String path)
public FileSystemFile(FileSystemFile parent, String child)
public FileSystemFile(File file)
public File getFile()
public boolean isDirectory()
isDirectory in interface Filepublic long getLastModified()
ContentgetLastModified in interface Contentpublic long getLength()
Contentpublic InputStream getInputStream() throws FileNotFoundException
ContentInputStream for the data.getInputStream in interface ContentFileNotFoundExceptionCopyright © 2018 CrafterCMS. All rights reserved.