|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.naming.resources.Resource
public class Resource
Encapsulates the contents of a resource.
| Field Summary | |
|---|---|
protected byte[] |
binaryContent
Binary content. |
protected InputStream |
inputStream
Input stream. |
| Constructor Summary | |
|---|---|
Resource()
|
|
Resource(byte[] binaryContent)
|
|
Resource(InputStream inputStream)
|
|
| Method Summary | |
|---|---|
byte[] |
getContent()
Content accessor. |
void |
setContent(byte[] binaryContent)
Content mutator. |
void |
setContent(InputStream inputStream)
Content mutator. |
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 InputStream inputStream
| Constructor Detail |
|---|
public Resource()
public Resource(InputStream inputStream)
public Resource(byte[] binaryContent)
| Method Detail |
|---|
public InputStream streamContent()
throws IOException
IOExceptionpublic byte[] getContent()
public void setContent(InputStream inputStream)
inputStream - New input streampublic void setContent(byte[] binaryContent)
binaryContent - New bin content
|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||