public interface FileSystemInterface
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_LENGTH |
static long |
DEFAULT_TIMESTAMP |
Modifier and Type | Method and Description |
---|---|
byte [] |
contentsToByteArray(VirtualFile file) |
VirtualFile |
copyFile(java.lang.Object requestor,
VirtualFile file,
VirtualFile newParent,
java.lang.String copyName) |
VirtualFile |
createChildDirectory(java.lang.Object requestor,
VirtualFile parent,
java.lang.String dir) |
VirtualFile |
createChildFile(java.lang.Object requestor,
VirtualFile parent,
java.lang.String file) |
void |
deleteFile(java.lang.Object requestor,
VirtualFile file) |
boolean |
exists(VirtualFile file) |
java.io.InputStream |
getInputStream(VirtualFile file)
Does NOT strip the BOM from the beginning of the stream, unlike the
VirtualFile.getInputStream() |
long |
getLength(VirtualFile file) |
java.io.OutputStream |
getOutputStream(VirtualFile file,
java.lang.Object requestor,
long modStamp,
long timeStamp)
Does NOT add the BOM to the beginning of the stream, unlike the
VirtualFile.getOutputStream(Object) |
long |
getTimeStamp(VirtualFile file) |
boolean |
isDirectory(VirtualFile file) |
boolean |
isSymLink(VirtualFile file) |
boolean |
isWritable(VirtualFile file) |
java.lang.String [] |
list(VirtualFile file) |
void |
moveFile(java.lang.Object requestor,
VirtualFile file,
VirtualFile newParent) |
void |
renameFile(java.lang.Object requestor,
VirtualFile file,
java.lang.String newName) |
java.lang.String |
resolveSymLink(VirtualFile file) |
void |
setTimeStamp(VirtualFile file,
long timeStamp) |
void |
setWritable(VirtualFile file,
boolean writableFlag) |
static final long DEFAULT_LENGTH
static final long DEFAULT_TIMESTAMP
boolean exists(VirtualFile file)
java.lang.String [] list(VirtualFile file)
boolean isDirectory(VirtualFile file)
long getTimeStamp(VirtualFile file)
void setTimeStamp(VirtualFile file, long timeStamp) throws java.io.IOException
java.io.IOException
boolean isWritable(VirtualFile file)
void setWritable(VirtualFile file, boolean writableFlag) throws java.io.IOException
java.io.IOException
boolean isSymLink(VirtualFile file)
java.lang.String resolveSymLink(VirtualFile file)
VirtualFile createChildDirectory(java.lang.Object requestor, VirtualFile parent, java.lang.String dir) throws java.io.IOException
java.io.IOException
VirtualFile createChildFile(java.lang.Object requestor, VirtualFile parent, java.lang.String file) throws java.io.IOException
java.io.IOException
void deleteFile(java.lang.Object requestor, VirtualFile file) throws java.io.IOException
java.io.IOException
void moveFile(java.lang.Object requestor, VirtualFile file, VirtualFile newParent) throws java.io.IOException
java.io.IOException
void renameFile(java.lang.Object requestor, VirtualFile file, java.lang.String newName) throws java.io.IOException
java.io.IOException
VirtualFile copyFile(java.lang.Object requestor, VirtualFile file, VirtualFile newParent, java.lang.String copyName) throws java.io.IOException
java.io.IOException
byte [] contentsToByteArray(VirtualFile file) throws java.io.IOException
java.io.IOException
java.io.InputStream getInputStream(VirtualFile file) throws java.io.IOException
VirtualFile.getInputStream()
java.io.IOException
java.io.OutputStream getOutputStream(VirtualFile file, java.lang.Object requestor, long modStamp, long timeStamp) throws java.io.IOException
VirtualFile.getOutputStream(Object)
java.io.IOException
long getLength(VirtualFile file)