org.codehaus.mojo.mrm.impl
Class LinkFileEntry

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

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

An entry backed by a FileEntry on a (possibly different) FileSystem.

Since:
1.0
See Also:
Serialized Form

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

LinkFileEntry

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

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

LinkFileEntry

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

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