public class VolatileResourceFile extends Object implements FileObject
FileObject implementation which is stored on the heap.| Modifier and Type | Field and Description |
|---|---|
static String |
URI_SCHEME
The schema name of this kind of resources.
|
| Constructor and Description |
|---|
VolatileResourceFile(String path)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete() |
CharSequence |
getCharContent(boolean ignoreEncodingErrors) |
long |
getLastModified() |
String |
getName() |
InputStream |
openInputStream() |
OutputStream |
openOutputStream() |
Reader |
openReader(boolean ignoreEncodingErrors) |
Writer |
openWriter() |
URI |
toUri() |
public static final String URI_SCHEME
public VolatileResourceFile(String path)
path - the relative path from the source pathIllegalArgumentException - if the parameter is nullpublic URI toUri()
toUri in interface FileObjectpublic String getName()
getName in interface FileObjectpublic InputStream openInputStream() throws IOException
openInputStream in interface FileObjectIOExceptionpublic OutputStream openOutputStream() throws IOException
openOutputStream in interface FileObjectIOExceptionpublic Reader openReader(boolean ignoreEncodingErrors) throws IOException
openReader in interface FileObjectIOExceptionpublic CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException
getCharContent in interface FileObjectIOExceptionpublic Writer openWriter() throws IOException
openWriter in interface FileObjectIOExceptionpublic long getLastModified()
getLastModified in interface FileObjectpublic boolean delete()
delete in interface FileObjectCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.