org.codehaus.mojo.mrm.impl.digest
Class MD5DigestFileEntry

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

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

A FileEntry that corresponds to the MD5 digest of another file entry.

See Also:
Serialized Form

Nested Class Summary
static class MD5DigestFileEntry.Factory
          A DigestFileEntryFactory that creates MD5 digest entries.
 
Constructor Summary
MD5DigestFileEntry(org.codehaus.mojo.mrm.api.FileSystem fileSystem, org.codehaus.mojo.mrm.api.DirectoryEntry parent, org.codehaus.mojo.mrm.api.FileEntry entry)
          Creates an instance in the specified directory of the specified file system that will calculate the digest of the specified file entry.
 
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

MD5DigestFileEntry

public MD5DigestFileEntry(org.codehaus.mojo.mrm.api.FileSystem fileSystem,
                          org.codehaus.mojo.mrm.api.DirectoryEntry parent,
                          org.codehaus.mojo.mrm.api.FileEntry entry)
Creates an instance in the specified directory of the specified file system that will calculate the digest of the specified file entry.

Parameters:
fileSystem - the file system.
parent - the parent directory.
entry - the entry to digest.
Since:
1.0
Method Detail

getLastModified

public long getLastModified()
                     throws IOException

Throws:
IOException

getSize

public long getSize()
             throws IOException

Throws:
IOException

getInputStream

public InputStream getInputStream()
                           throws IOException

Throws:
IOException


Copyright © 2009-2011 Codehaus. All Rights Reserved.