|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
org.codehaus.plexus.components.io.resources.proxy.PlexusIoProxyResource
public class PlexusIoProxyResource
| Field Summary |
|---|
| Fields inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResource |
|---|
UNKNOWN_MODIFICATION_DATE, UNKNOWN_RESOURCE_SIZE |
| Constructor Summary | |
|---|---|
PlexusIoProxyResource(PlexusIoResource plexusIoResource)
|
|
| Method Summary | |
|---|---|
java.io.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. |
java.net.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. |
| Methods inherited from class org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource |
|---|
getName, setDirectory, setExisting, setFile, setLastModified, setName, setSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlexusIoProxyResource(PlexusIoResource plexusIoResource)
| Method Detail |
|---|
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()
PlexusIoResource
isExisting in interface PlexusIoResourceisExisting in class AbstractPlexusIoResourcepublic boolean isFile()
FileInfoFileInfo refers to a file.
isFile in interface FileInfoisFile in class AbstractPlexusIoResource
public java.net.URL getURL()
throws java.io.IOException
PlexusIoResourceURL, which may be used to reference the
resource, if possible.
#getInputStream().
java.io.IOException
public java.io.InputStream getContents()
throws java.io.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.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||