|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PlexusIoResource
A resource is a file-like entity. It may be an actual file, an URL, a zip entry, or something like that.
| Field Summary | |
|---|---|
static long |
UNKNOWN_MODIFICATION_DATE
Unknown modification date |
static long |
UNKNOWN_RESOURCE_SIZE
Unknown resource size. |
| Method Summary | |
|---|---|
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 |
isExisting()
Returns, whether the resource exists. |
| Methods inherited from interface org.codehaus.plexus.components.io.fileselectors.FileInfo |
|---|
getContents, getName, isDirectory, isFile |
| Field Detail |
|---|
static final long UNKNOWN_RESOURCE_SIZE
static final long UNKNOWN_MODIFICATION_DATE
| Method Detail |
|---|
long getLastModified()
UNKNOWN_MODIFICATION_DATE.
File.lastModified()boolean isExisting()
long getSize()
UNKNOWN_RESOURCE_SIZE.
java.net.URL getURL()
throws java.io.IOException
URL, which may be used to reference the
resource, if possible.
#getInputStream().
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||