| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.naming.resources.Resource
Encapsultes the contents of a resource.
| Field Summary | |
protected  byte[] | 
binaryContent
Binary content.  | 
protected  java.io.InputStream | 
inputStream
Input stream.  | 
| Constructor Summary | |
Resource()
 | 
|
Resource(byte[] binaryContent)
 | 
|
Resource(java.io.InputStream inputStream)
 | 
|
| Method Summary | |
 byte[] | 
getContent()
Content accessor.  | 
 void | 
setContent(byte[] binaryContent)
Content mutator.  | 
 void | 
setContent(java.io.InputStream inputStream)
Content mutator.  | 
 java.io.InputStream | 
streamContent()
Content accessor.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected byte[] binaryContent
protected java.io.InputStream inputStream
| Constructor Detail | 
public Resource()
public Resource(java.io.InputStream inputStream)
public Resource(byte[] binaryContent)
| Method Detail | 
public java.io.InputStream streamContent()
                                  throws java.io.IOException
java.io.IOExceptionpublic byte[] getContent()
public void setContent(java.io.InputStream inputStream)
inputStream - New input streampublic void setContent(byte[] binaryContent)
binaryContent - New bin content
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||