public class RAMDriver extends AbstractFSDriver<Path>
| Modifier and Type | Field and Description |
|---|---|
(package private) URL |
baseURL
.
|
(package private) HashMap<Path,String> |
entries
.
|
private Path |
root
.
|
| Constructor and Description |
|---|
RAMDriver() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Path path,
String file) |
void |
add(String path,
String file) |
Iterable<Path> |
children(Path handle) |
long |
getLastModified(Path handle) |
boolean |
isDir(Path handle) |
String |
name(Path handle) |
Iterator<InputStream> |
open(Path handle) |
Path |
root()
Returns the root handle.
|
childpublic RAMDriver()
public Path root() throws IOException
FSDriverIOException - any io exceptionpublic String name(Path handle) throws IOException
IOExceptionpublic boolean isDir(Path handle) throws IOException
IOExceptionpublic Iterable<Path> children(Path handle) throws IOException
IOExceptionpublic long getLastModified(Path handle) throws IOException
IOExceptionpublic Iterator<InputStream> open(Path handle) throws IOException
IOExceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.