org.n52.security.common.artifact
Class StreamPayload

java.lang.Object
  extended by 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.
 
Constructor Summary
StreamPayload(InputStream pIn, String pCharset)
          Creates a new StreamPayload.
 
Method Summary
 InputStream getAsStream()
           
 byte[] toByteArray()
           
 String toString()
           
 TextualPayload toTextualPayload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

StreamPayload

public StreamPayload(InputStream pIn,
                     String pCharset)
              throws IOException
Creates a new StreamPayload.

Throws:
IOException
Method Detail

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.