站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

LoaderResource - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.common.util
Class LoaderResource

java.lang.Object
  extended byorg.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
           
 
Constructor Summary
LoaderResource(java.lang.String location)
           
 
Method Summary
 org.w3c.dom.Document asDocument(javax.xml.parsers.DocumentBuilder builder)
           
abstract  java.io.InputStream asInputStream()
           
 java.util.Properties asProperties()
           
 java.util.Properties asProperties(boolean xml)
           
 java.lang.String asString()
           
 java.lang.String asString(java.lang.String enc)
           
abstract  boolean exists()
           
 java.lang.String getLocation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

location

protected final java.lang.String location

log

private final org.jboss.logging.Logger log
Constructor Detail

LoaderResource

public LoaderResource(java.lang.String location)
Method Detail

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