public interface VirtualFile extends SinglePathResolver
Modifier and Type | Method and Description |
---|---|
void |
close()
Signal the hosting environment that this instance is no longer used.
|
boolean |
equals(Object object)
Override equals().
|
InputStream |
getInputStream()
Return input stream...
|
long |
getLastModified()
Return last time the underlying source is modified.
|
String |
getMimeType()
Return mime type
|
String |
getName()
Return name...
|
String |
getNameForReporting()
Return the name to be used when reporting errors or warnings.
|
String |
getParent() |
String |
getURL()
Return an URL string of this file
|
int |
hashCode()
Override hashCode().
|
boolean |
isDirectory() |
boolean |
isTextBased()
Return true if it's text-based. toString() returns the text
|
long |
size()
Return file size...
|
byte[] |
toByteArray()
Return the entire content in byte[]
|
resolve
String getName()
String getNameForReporting()
String getURL()
String getParent()
boolean isDirectory()
long size()
String getMimeType()
InputStream getInputStream() throws IOException
IOException
byte[] toByteArray() throws IOException
IOException
boolean isTextBased()
long getLastModified()
void close()
boolean equals(Object object)
Copyright © 2016 The Apache Software Foundation. All rights reserved.