Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


oracle.stellent.wcm.common.io.resource
Class Resource

java.lang.Object
  extended by oracle.stellent.wcm.common.io.resource.Resource

Direct Known Subclasses:
ClasspathResource, FileResource, InputStreamResource, ServletContextResource, UrlResource

public abstract class Resource
extends java.lang.Object

Represents an stream and path to a resource


Constructor Summary
protected Resource(java.lang.String path)
           

 

Method Summary
 boolean exists()
           
 java.lang.String getExternalPath()
           
abstract  java.io.InputStream getInputStream()
           
 long getLastModified()
           
 java.lang.String getPath()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

Resource

protected Resource(java.lang.String path)

Method Detail

getPath

public java.lang.String getPath()
Returns:
the path of the resource

getExternalPath

public java.lang.String getExternalPath()
Returns:
an external form of the path

getLastModified

public long getLastModified()
Returns:
the time when this resource was last modified, -1 if it cannot be determined

exists

public boolean exists()
Returns:
true if the resource exists

getInputStream

public abstract java.io.InputStream getInputStream()
                                            throws java.io.IOException
Returns:
the inputstream to this resource
Throws:
java.io.IOException

Skip navigation links

Oracle® WebCenter Content Site Studio for External Applications Java API Reference
11g Release 1 (11.1.1)

E17273-03


Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.