org.codehaus.mojo.mrm.impl
Class MemoryFileEntry
java.lang.Object
org.codehaus.mojo.mrm.api.AbstractEntry
org.codehaus.mojo.mrm.api.BaseFileEntry
org.codehaus.mojo.mrm.impl.MemoryFileEntry
- All Implemented Interfaces:
- Serializable, org.codehaus.mojo.mrm.api.Entry, org.codehaus.mojo.mrm.api.FileEntry
public class MemoryFileEntry
- extends org.codehaus.mojo.mrm.api.BaseFileEntry
A FileEntry who's contents are held in memory.
- See Also:
- Serialized Form
|
Constructor Summary |
MemoryFileEntry(org.codehaus.mojo.mrm.api.FileSystem fileSystem,
org.codehaus.mojo.mrm.api.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. |
| Methods inherited from class org.codehaus.mojo.mrm.api.AbstractEntry |
equals, getFileSystem, getName, getParent, hashCode, toPath, toString |
| Methods inherited from interface org.codehaus.mojo.mrm.api.Entry |
getFileSystem, getName, getParent, toPath |
MemoryFileEntry
public MemoryFileEntry(org.codehaus.mojo.mrm.api.FileSystem fileSystem,
org.codehaus.mojo.mrm.api.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.
- Parameters:
fileSystem - the file system.parent - the parent directoryname - the name.content - the content.- Since:
- 1.0
getLastModified
public long getLastModified()
-
getSize
public long getSize()
-
getInputStream
public InputStream getInputStream()
throws IOException
-
- Throws:
IOException
Copyright © 2009-2011 Codehaus. All Rights Reserved.