org.codehaus.mojo.mrm.impl
Class DiskFileEntry

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.DiskFileEntry
All Implemented Interfaces:
Serializable, org.codehaus.mojo.mrm.api.Entry, org.codehaus.mojo.mrm.api.FileEntry

public class DiskFileEntry
extends org.codehaus.mojo.mrm.api.BaseFileEntry

A file entry backed by a File on a local disk.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
DiskFileEntry(org.codehaus.mojo.mrm.api.FileSystem fileSystem, org.codehaus.mojo.mrm.api.DirectoryEntry parent, File file)
          Creates a new instance in the specified parent directory of the specified file system that backs the supplied file named with File.getName().
DiskFileEntry(org.codehaus.mojo.mrm.api.FileSystem fileSystem, org.codehaus.mojo.mrm.api.DirectoryEntry parent, String name, File file)
          Creates a new instance in the specified parent directory of the specified file system that backs the supplied file named with the supplied name.
 
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

DiskFileEntry

public DiskFileEntry(org.codehaus.mojo.mrm.api.FileSystem fileSystem,
                     org.codehaus.mojo.mrm.api.DirectoryEntry parent,
                     File file)
Creates a new instance in the specified parent directory of the specified file system that backs the supplied file named with File.getName().

Parameters:
fileSystem - the file system.
parent - the parent directory.
file - the backing file.
Since:
1.0

DiskFileEntry

public DiskFileEntry(org.codehaus.mojo.mrm.api.FileSystem fileSystem,
                     org.codehaus.mojo.mrm.api.DirectoryEntry parent,
                     String name,
                     File file)
Creates a new instance in the specified parent directory of the specified file system that backs the supplied file named with the supplied name.

Parameters:
fileSystem - the file system.
parent - the parent directory.
name - the name of the entry.
file - the backing file.
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.