public class PlexusIoURLResource extends AbstractPlexusIoResource
UNKNOWN_MODIFICATION_DATE, UNKNOWN_RESOURCE_SIZE
Constructor and Description |
---|
PlexusIoURLResource() |
Modifier and Type | Method and Description |
---|---|
InputStream |
getContents()
Creates an
InputStream , which may be used to read
the files contents. |
URL |
getURL()
Returns an
URL , which may be used to reference the
resource, if possible. |
void |
setURL(URL pUrl) |
getLastModified, getName, getSize, isDirectory, isExisting, isFile, setDirectory, setExisting, setFile, setLastModified, setName, setSize
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
public URL getURL() throws IOException
PlexusIoResource
URL
, which may be used to reference the
resource, if possible.#getInputStream()
.IOException
public void setURL(URL pUrl)
Copyright © 2001-2012 Codehaus. All Rights Reserved.