|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.naming.resources.Resource
public class 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.IOException
public byte[] getContent()
public void setContent(java.io.InputStream inputStream)
inputStream
- New input streampublic void setContent(byte[] binaryContent)
binaryContent
- New bin content
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |