public class MemoryFileSystem extends BaseFileSystem
| Constructor and Description |
|---|
MemoryFileSystem()
Create a new empty file system.
|
| Modifier and Type | Method and Description |
|---|---|
protected Entry |
get(DirectoryEntry parent,
String name) |
long |
getLastModified(DirectoryEntry directoryEntry) |
Entry[] |
listEntries(DirectoryEntry directory) |
DirectoryEntry |
mkdir(DirectoryEntry parent,
String name) |
FileEntry |
put(DirectoryEntry parent,
String name,
InputStream content) |
void |
remove(Entry entry) |
get, getRoot, putpublic MemoryFileSystem()
public Entry[] listEntries(DirectoryEntry directory)
public long getLastModified(DirectoryEntry directoryEntry) throws IOException
IOExceptionprotected Entry get(DirectoryEntry parent, String name)
get in class BaseFileSystempublic DirectoryEntry mkdir(DirectoryEntry parent, String name)
mkdir in interface FileSystemmkdir in class BaseFileSystempublic FileEntry put(DirectoryEntry parent, String name, InputStream content) throws IOException
put in interface FileSystemput in class BaseFileSystemIOExceptionpublic void remove(Entry entry)
remove in interface FileSystemremove in class BaseFileSystemCopyright © 2009–2022 MojoHaus. All rights reserved.