当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
LoaderResource - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.common.util
Class LoaderResource
java.lang.Object
org.jboss.portal.common.util.LoaderResource
- Direct Known Subclasses:
- CLLoader.URLResource
- public abstract class LoaderResource
- extends java.lang.Object
Represent a resource that may or not exist.
- Version:
- $Revision: 5495 $
- Author:
- Julien Viet
Field Summary |
protected java.lang.String |
location
|
private org.jboss.logging.Logger |
log
|
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
log
private final org.jboss.logging.Logger log
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