public class MemoryFileSystem extends Object implements org.apache.jackrabbit.core.fs.FileSystem
| Constructor and Description |
|---|
MemoryFileSystem() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
createFolder(String folderPath) |
void |
deleteFile(String filePath) |
void |
deleteFolder(String folderPath) |
boolean |
exists(String path) |
InputStream |
getInputStream(String filePath) |
OutputStream |
getOutputStream(String filePath) |
boolean |
hasChildren(String path) |
void |
init() |
boolean |
isFile(String path) |
boolean |
isFolder(String path) |
long |
lastModified(String path) |
long |
length(String filePath) |
String[] |
list(String folderPath) |
String[] |
listFiles(String folderPath) |
String[] |
listFolders(String folderPath) |
public void close()
close in interface org.apache.jackrabbit.core.fs.FileSystempublic void createFolder(String folderPath) throws org.apache.jackrabbit.core.fs.FileSystemException
createFolder in interface org.apache.jackrabbit.core.fs.FileSystemorg.apache.jackrabbit.core.fs.FileSystemExceptionpublic void deleteFile(String filePath) throws org.apache.jackrabbit.core.fs.FileSystemException
deleteFile in interface org.apache.jackrabbit.core.fs.FileSystemorg.apache.jackrabbit.core.fs.FileSystemExceptionpublic void deleteFolder(String folderPath) throws org.apache.jackrabbit.core.fs.FileSystemException
deleteFolder in interface org.apache.jackrabbit.core.fs.FileSystemorg.apache.jackrabbit.core.fs.FileSystemExceptionpublic boolean exists(String path) throws org.apache.jackrabbit.core.fs.FileSystemException
exists in interface org.apache.jackrabbit.core.fs.FileSystemorg.apache.jackrabbit.core.fs.FileSystemExceptionpublic InputStream getInputStream(String filePath) throws org.apache.jackrabbit.core.fs.FileSystemException
getInputStream in interface org.apache.jackrabbit.core.fs.FileSystemorg.apache.jackrabbit.core.fs.FileSystemExceptionpublic OutputStream getOutputStream(String filePath) throws org.apache.jackrabbit.core.fs.FileSystemException
getOutputStream in interface org.apache.jackrabbit.core.fs.FileSystemorg.apache.jackrabbit.core.fs.FileSystemExceptionpublic boolean hasChildren(String path) throws org.apache.jackrabbit.core.fs.FileSystemException
hasChildren in interface org.apache.jackrabbit.core.fs.FileSystemorg.apache.jackrabbit.core.fs.FileSystemExceptionpublic void init()
init in interface org.apache.jackrabbit.core.fs.FileSystempublic boolean isFile(String path) throws org.apache.jackrabbit.core.fs.FileSystemException
isFile in interface org.apache.jackrabbit.core.fs.FileSystemorg.apache.jackrabbit.core.fs.FileSystemExceptionpublic boolean isFolder(String path) throws org.apache.jackrabbit.core.fs.FileSystemException
isFolder in interface org.apache.jackrabbit.core.fs.FileSystemorg.apache.jackrabbit.core.fs.FileSystemExceptionpublic long lastModified(String path) throws org.apache.jackrabbit.core.fs.FileSystemException
lastModified in interface org.apache.jackrabbit.core.fs.FileSystemorg.apache.jackrabbit.core.fs.FileSystemExceptionpublic long length(String filePath) throws org.apache.jackrabbit.core.fs.FileSystemException
length in interface org.apache.jackrabbit.core.fs.FileSystemorg.apache.jackrabbit.core.fs.FileSystemExceptionpublic String[] list(String folderPath)
list in interface org.apache.jackrabbit.core.fs.FileSystempublic String[] listFiles(String folderPath)
listFiles in interface org.apache.jackrabbit.core.fs.FileSystemCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.