org.codehaus.mojo.mrm.impl
Class MemoryFileEntry

java.lang.Object
  extended by org.codehaus.mojo.mrm.api.AbstractEntry
      extended by org.codehaus.mojo.mrm.api.BaseFileEntry
          extended by 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.
 
Method Summary
 InputStream getInputStream()
          
 long getLastModified()
          
 long getSize()
          
 
Methods inherited from class org.codehaus.mojo.mrm.api.AbstractEntry
equals, getFileSystem, getName, getParent, hashCode, toPath, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.codehaus.mojo.mrm.api.Entry
getFileSystem, getName, getParent, toPath
 

Constructor Detail

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 directory
name - the name.
content - the content.
Since:
1.0
Method Detail

getLastModified

public long getLastModified()


getSize

public long getSize()


getInputStream

public InputStream getInputStream()
                           throws IOException

Throws:
IOException


Copyright © 2009-2011 Codehaus. All Rights Reserved.