Skip navigation links
oracle.stellent.wcm.common.io.resource.impl
Class FileResource
java.lang.Object
oracle.stellent.wcm.common.io.resource.Resource
oracle.stellent.wcm.common.io.resource.impl.FileResource
-
public class FileResource
- extends Resource
Represents a resource loaded from the file system
Field Summary |
static java.lang.String |
PREFIX
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFIX
public static final java.lang.String PREFIX
-
- See Also:
- Constant Field Values
FileResource
public FileResource(java.lang.String path)
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException
-
- Specified by:
getInputStream
in class Resource
-
- Returns:
- the inputstream to this resource
- Throws:
java.io.IOException
getExternalPath
public java.lang.String getExternalPath()
-
- Overrides:
getExternalPath
in class Resource
-
- Returns:
- an external form of the path
getLastModified
public long getLastModified()
-
- Overrides:
getLastModified
in class Resource
-
- Returns:
- the time when this resource was last modified, -1 if it cannot be determined
Skip navigation links
Copyright © 2010, 2011, Oracle and/or its affiliates. All rights reserved.