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. |
protected String |
getDescriptionForError() |
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, setSizepublic InputStream getContents() throws 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.
Please note that this InputStream is unbuffered. Clients should wrap this in a
BufferedInputStream or attempt reading reasonably large chunks (8K+).IOExceptionprotected String getDescriptionForError()
public URL getURL() throws IOException
PlexusIoResourceURL, which may be used to reference the
resource, if possible.#getInputStream().IOExceptionpublic void setURL(URL pUrl)
Copyright © 2001-2013 Codehaus. All Rights Reserved.