public class Resource extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
binaryContent
Binary content.
|
protected InputStream |
inputStream
Input 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
IOException
public byte[] getContent()
public void setContent(InputStream inputStream)
inputStream
- New input streampublic void setContent(byte[] binaryContent)
binaryContent
- New bin contentCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.