org.codehaus.mojo.mrm.impl
Class RemoteFileEntry
java.lang.Object
org.codehaus.mojo.mrm.api.AbstractEntry
org.codehaus.mojo.mrm.api.BaseFileEntry
org.codehaus.mojo.mrm.impl.RemoteFileEntry
- All Implemented Interfaces:
- Serializable, org.codehaus.mojo.mrm.api.Entry, org.codehaus.mojo.mrm.api.FileEntry
public class RemoteFileEntry
- extends org.codehaus.mojo.mrm.api.BaseFileEntry
A FileEntry that is hosted at a remote URL.
- See Also:
- Serialized Form
|
Constructor Summary |
RemoteFileEntry(org.codehaus.mojo.mrm.api.FileSystem fileSystem,
org.codehaus.mojo.mrm.api.DirectoryEntry parent,
String name,
URL url)
Create a new file entry. |
| 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 |
RemoteFileEntry
public RemoteFileEntry(org.codehaus.mojo.mrm.api.FileSystem fileSystem,
org.codehaus.mojo.mrm.api.DirectoryEntry parent,
String name,
URL url)
- Create a new file entry.
- Parameters:
fileSystem - the owning file system.parent - the directory hosting the entry.name - the name of the entry.url - the content of the entry.
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.