当前页面:
在线文档首页 >
JBOSS Portal 2.4 API 英文版文档
LoaderResource - JBOSS Portal 2.4 API 英文版文档
org.jboss.portal.common.util
Class LoaderResource
java.lang.Object
org.jboss.portal.common.util.LoaderResource
- public abstract class LoaderResource
- extends java.lang.Object
Represent a resource that may or not exist.
Field Summary |
protected java.lang.String |
location
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
location
protected final java.lang.String location
LoaderResource
public LoaderResource(java.lang.String location)
exists
public abstract boolean exists()
asInputStream
public abstract java.io.InputStream asInputStream()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
getLocation
public java.lang.String getLocation()
asDocument
public org.w3c.dom.Document asDocument(javax.xml.parsers.DocumentBuilder builder)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
asProperties
public java.util.Properties asProperties()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
asProperties
public java.util.Properties asProperties(boolean xml)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
asString
public java.lang.String asString()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
asString
public java.lang.String asString(java.lang.String enc)
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException