org.n52.security.common.artifact
Class StreamPayload
java.lang.Object
org.n52.security.common.artifact.StreamPayload
- All Implemented Interfaces:
- Payload
public class StreamPayload
- extends Object
- implements Payload
Field Summary |
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. |
m_originalBytes
protected byte[] m_originalBytes
- The bytes as provided by the client.
m_charset
protected String m_charset
- Character set used when the bytes are converted to character data.
StreamPayload
public StreamPayload(InputStream pIn,
String pCharset)
throws IOException
- Creates a new StreamPayload.
- Throws:
IOException
getAsStream
public InputStream getAsStream()
- Specified by:
getAsStream
in interface Payload
toString
public String toString()
- Specified by:
toString
in interface Payload
- Overrides:
toString
in class Object
toByteArray
public byte[] toByteArray()
toTextualPayload
public TextualPayload toTextualPayload()
Copyright © 2004–2014 52north.org. All rights reserved.