protected class AbstractHttpTransport.LoaderExtensionResource extends AbstractResourceBase
IResource
that aggregates the various
sources (dynamic and static content) of the loader extension
javascript for this transportConstructor and Description |
---|
AbstractHttpTransport.LoaderExtensionResource(IResource res) |
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. |
URI |
getReferenceURI()
Returns the reference URI.
|
long |
lastModified()
Returns the last-modified date of the resource.
|
asVisitorResource, getPath, getSize, getURI, isFolder, resolve, setReferenceURI, walkTree
public AbstractHttpTransport.LoaderExtensionResource(IResource res)
public URI getReferenceURI()
IResource
IAggregator.newResource(URI)
, before any conversions by resource factories or
resource converters. This URI may or may not be the same value that is returned by
IResource.getURI()
and it may be a pseudo URI specifying a scheme that is not directly
supported by the platform (e.g. namedbundleresource).getReferenceURI
in interface IResource
getReferenceURI
in class AbstractResourceBase
public boolean exists()
IResource
exists
in interface IResource
exists
in class AbstractResourceBase
public long lastModified()
IResource
lastModified
in interface IResource
lastModified
in class AbstractResourceBase
public 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 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 occurredCopyright © 2011-2015 IBM. All Rights Reserved.