public class ExceptionResource extends AbstractResourceBase
Constructor and Description |
---|
ExceptionResource(URI uri,
long lastModified,
IOException ex) |
Modifier and Type | Method and Description |
---|---|
InputStream |
getInputStream()
Returns a
InputStream object for the resource if the resource
is not a directory/folder resource. |
Reader |
getReader()
Returns a
Reader object for the resource if the resource is not a
directory/folder resource. |
long |
lastModified()
Returns the last-modified date of the resource.
|
String |
toString() |
asVisitorResource, exists, getPath, getReferenceURI, getSize, getURI, isFolder, resolve, setReferenceURI, walkTree
public ExceptionResource(URI uri, long lastModified, IOException ex)
public long lastModified()
IResource
lastModified
in interface IResource
lastModified
in class AbstractResourceBase
public Reader getReader() throws IOException
IResource
Reader
object for the resource if the resource is not a
directory/folder resource.IOException
- if the resource is a folder, or an I/O error occurredpublic InputStream getInputStream() throws IOException
IResource
InputStream
object for the resource if the resource
is not a directory/folder resource.IOException
- if the resource is a folder, or an I/O error occurredCopyright © 2011-2015 IBM. All Rights Reserved.