Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » naming » resources » [javadoc | source]
org.apache.naming.resources
public class: Resource [javadoc | source]
java.lang.Object
   org.apache.naming.resources.Resource

Direct Known Subclasses:
    FileResource, WARResource

Encapsultes the contents of a resource.
Field Summary
protected  byte[] binaryContent    Binary content. 
protected  InputStream inputStream    Input stream. 
Constructor:
 public Resource() 
 public Resource(InputStream inputStream) 
 public Resource(byte[] binaryContent) 
Method from org.apache.naming.resources.Resource Summary:
getContent,   setContent,   setContent,   streamContent
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.naming.resources.Resource Detail:
 public byte[] getContent() 
    Content accessor.
 public  void setContent(InputStream inputStream) 
    Content mutator.
 public  void setContent(byte[] binaryContent) 
    Content mutator.
 public InputStream streamContent() throws IOException 
    Content accessor.