public class PlexusIoProxyResource extends AbstractPlexusIoResource
UNKNOWN_MODIFICATION_DATE, UNKNOWN_RESOURCE_SIZE| Constructor and Description |
|---|
PlexusIoProxyResource(PlexusIoResource plexusIoResource) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getContents()
Creates an
InputStream, which may be used to read
the files contents. |
long |
getLastModified()
Returns the date, when the resource was last modified, if known.
|
long |
getSize()
Returns the resources size, if known.
|
URL |
getURL()
Returns an
URL, which may be used to reference the
resource, if possible. |
boolean |
isDirectory()
Returns, whether the
FileInfo refers to a directory. |
boolean |
isExisting()
Returns, whether the resource exists.
|
boolean |
isFile()
Returns, whether the
FileInfo refers to a file. |
getName, setDirectory, setExisting, setFile, setLastModified, setName, setSizepublic PlexusIoProxyResource(PlexusIoResource plexusIoResource)
public long getLastModified()
PlexusIoResourcePlexusIoResource.UNKNOWN_MODIFICATION_DATE.getLastModified in interface PlexusIoResourcegetLastModified in class AbstractPlexusIoResourceFile.lastModified()public long getSize()
PlexusIoResourcePlexusIoResource.UNKNOWN_RESOURCE_SIZE.getSize in interface PlexusIoResourcegetSize in class AbstractPlexusIoResourcepublic boolean isDirectory()
FileInfoFileInfo refers to a directory.isDirectory in interface FileInfoisDirectory in class AbstractPlexusIoResourcepublic boolean isExisting()
PlexusIoResourceisExisting in interface PlexusIoResourceisExisting in class AbstractPlexusIoResourcepublic boolean isFile()
FileInfoFileInfo refers to a file.isFile in interface FileInfoisFile in class AbstractPlexusIoResourcepublic URL getURL() throws IOException
PlexusIoResourceURL, which may be used to reference the
resource, if possible.#getInputStream().IOExceptionpublic InputStream getContents() throws IOException
FileInfoInputStream, which may be used to read
the files contents. This is useful, if the file selector
comes to a decision based on the files contents.IOExceptionCopyright © 2001-2014 Codehaus. All Rights Reserved.