public class NotFoundResource extends AbstractResourceBase
Constructor and Description |
---|
NotFoundResource(URI uri) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists()
Returns true if the resource exists.
|
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. |
String |
toString() |
asVisitorResource, getPath, getReferenceURI, getSize, getURI, isFolder, lastModified, resolve, setReferenceURI, walkTree
public NotFoundResource(URI uri)
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 occurredpublic boolean exists()
IResource
exists
in interface IResource
exists
in class AbstractResourceBase
Copyright © 2011-2015 IBM. All Rights Reserved.