Skip navigation links
oracle.stellent.wcm.common.io.resource
Class Resource
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Resource
protected Resource(java.lang.String path)
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
Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.