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 null
public URI toUri()
toUri
in interface FileObject
public String getName()
getName
in interface FileObject
public InputStream openInputStream() throws IOException
openInputStream
in interface FileObject
IOException
public OutputStream openOutputStream() throws IOException
openOutputStream
in interface FileObject
IOException
public Reader openReader(boolean ignoreEncodingErrors) throws IOException
openReader
in interface FileObject
IOException
public CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException
getCharContent
in interface FileObject
IOException
public Writer openWriter() throws IOException
openWriter
in interface FileObject
IOException
public long getLastModified()
getLastModified
in interface FileObject
public boolean delete()
delete
in interface FileObject
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.