|
||||||||||
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.AbstractPlexusIoResourceWithAttributes
org.codehaus.plexus.components.io.resources.proxy.PlexusIoProxyResourceWithAttributes
public class PlexusIoProxyResourceWithAttributes
Field Summary |
---|
Fields inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResource |
---|
UNKNOWN_MODIFICATION_DATE, UNKNOWN_RESOURCE_SIZE |
Constructor Summary | |
---|---|
PlexusIoProxyResourceWithAttributes(PlexusIoResource plexusIoResource,
PlexusIoResourceAttributes attrs)
|
|
PlexusIoProxyResourceWithAttributes(PlexusIoResourceWithAttributes plexusIoResource)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.codehaus.plexus.components.io.resources.AbstractPlexusIoResourceWithAttributes |
---|
getAttributes, setAttributes |
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 |
Methods inherited from interface org.codehaus.plexus.components.io.fileselectors.FileInfo |
---|
getName |
Constructor Detail |
---|
public PlexusIoProxyResourceWithAttributes(PlexusIoResourceWithAttributes plexusIoResource)
public PlexusIoProxyResourceWithAttributes(PlexusIoResource plexusIoResource, PlexusIoResourceAttributes attrs)
Method Detail |
---|
public long getLastModified()
PlexusIoResource
PlexusIoResource.UNKNOWN_MODIFICATION_DATE
.
getLastModified
in interface PlexusIoResource
getLastModified
in class AbstractPlexusIoResource
File.lastModified()
public long getSize()
PlexusIoResource
PlexusIoResource.UNKNOWN_RESOURCE_SIZE
.
getSize
in interface PlexusIoResource
getSize
in class AbstractPlexusIoResource
public boolean isDirectory()
FileInfo
FileInfo
refers to a directory.
isDirectory
in interface FileInfo
isDirectory
in class AbstractPlexusIoResource
public boolean isExisting()
PlexusIoResource
isExisting
in interface PlexusIoResource
isExisting
in class AbstractPlexusIoResource
public boolean isFile()
FileInfo
FileInfo
refers to a file.
isFile
in interface FileInfo
isFile
in class AbstractPlexusIoResource
public URL getURL() throws IOException
PlexusIoResource
URL
, which may be used to reference the
resource, if possible.
#getInputStream()
.
IOException
public InputStream getContents() throws IOException
FileInfo
InputStream
, 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.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |