public class Resource extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected byte[] | binaryContentBinary content. | 
| protected InputStream | inputStreamInput stream. | 
| Constructor and Description | 
|---|
| Resource() | 
| Resource(byte[] binaryContent) | 
| Resource(InputStream inputStream) | 
| Modifier and Type | Method and Description | 
|---|---|
| byte[] | getContent()Content accessor. | 
| void | setContent(byte[] binaryContent)Content mutator. | 
| void | setContent(InputStream inputStream)Content mutator. | 
| InputStream | streamContent()Content accessor. | 
protected byte[] binaryContent
protected InputStream inputStream
public Resource()
public Resource(InputStream inputStream)
public Resource(byte[] binaryContent)
public InputStream streamContent() throws IOException
IOExceptionpublic byte[] getContent()
public void setContent(InputStream inputStream)
inputStream - New input streampublic void setContent(byte[] binaryContent)
binaryContent - New bin contentCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.