public interface PlexusIoResource extends FileInfo
Modifier and Type | Field and Description |
---|---|
static long |
UNKNOWN_MODIFICATION_DATE
Unknown modification date
|
static long |
UNKNOWN_RESOURCE_SIZE
Unknown resource size.
|
Modifier and Type | Method and Description |
---|---|
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 |
isExisting()
Returns, whether the resource exists.
|
getContents, getName, isDirectory, isFile
static final long UNKNOWN_RESOURCE_SIZE
static final long UNKNOWN_MODIFICATION_DATE
long getLastModified()
UNKNOWN_MODIFICATION_DATE
.File.lastModified()
boolean isExisting()
long getSize()
UNKNOWN_RESOURCE_SIZE
.URL getURL() throws IOException
URL
, which may be used to reference the
resource, if possible.#getInputStream()
.IOException
Copyright © 2001-2013 Codehaus. All Rights Reserved.