public class MemoryFileEntry extends BaseFileEntry
FileEntry who's contents are held in memory.| Constructor and Description |
|---|
MemoryFileEntry(FileSystem fileSystem,
DirectoryEntry parent,
String name,
byte[] content)
Creates a new entry for the specified parent directory of the specified file system with the specified name
having the supplied content.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream() |
long |
getLastModified() |
long |
getSize() |
equals, getFileSystem, getName, getParent, hashCode, toPath, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFileSystem, getName, getParent, toPathpublic MemoryFileEntry(FileSystem fileSystem, DirectoryEntry parent, String name, byte[] content)
fileSystem - the file system.parent - the parent directoryname - the name.content - the content.public long getLastModified()
public long getSize()
public InputStream getInputStream() throws IOException
IOExceptionCopyright © 2009–2022 MojoHaus. All rights reserved.