Modifier and Type | Field and Description |
---|---|
protected String |
m_charset
Character set used when the bytes are converted to character data.
|
protected byte[] |
m_originalBytes
The bytes as provided by the client.
|
Constructor and Description |
---|
StreamPayload(InputStream pIn,
String pCharset)
Creates a new StreamPayload.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
getAsStream() |
byte[] |
toByteArray() |
String |
toString() |
TextualPayload |
toTextualPayload() |
protected byte[] m_originalBytes
protected String m_charset
public StreamPayload(InputStream pIn, String pCharset) throws IOException
IOException
public InputStream getAsStream()
getAsStream
in interface Payload
public String toString()
public byte[] toByteArray()
public TextualPayload toTextualPayload()
Copyright © 2004–2017 52north.org. All rights reserved.