public class Resource
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| protected byte[] | binaryContentBinary content. | 
| protected java.io.InputStream | inputStreamInput stream. | 
| Constructor and Description | 
|---|
| Resource() | 
| Resource(byte[] binaryContent) | 
| Resource(java.io.InputStream inputStream) | 
| Modifier and Type | Method and Description | 
|---|---|
| byte[] | getContent()Content accessor. | 
| void | setContent(byte[] binaryContent)Content mutator. | 
| void | setContent(java.io.InputStream inputStream)Content mutator. | 
| java.io.InputStream | streamContent()Content accessor. | 
protected byte[] binaryContent
protected java.io.InputStream inputStream
public Resource()
public Resource(java.io.InputStream inputStream)
public Resource(byte[] binaryContent)
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 contentCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.