public class Payload extends Object
| Constructor and Description |
|---|
Payload(byte[] load,
String charsetName)
Creates a new Payload object.
|
Payload(InputStream is)
Creates a new Payload.
|
Payload(InputStream is,
String charsetName)
Creates a new Payload.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
asBytes()
Returns the payload as byte array.
|
String |
asText()
Tries to return the payload as String.
|
boolean |
containsException()
If the Payload contains the String "ServiceExceptionReport" the method returns true.
|
public Payload(InputStream is) throws IOException
is - InputStreamIOException - DOCUMENT ME!public Payload(InputStream is, String charsetName) throws IOException
is - InputStreamcharsetName - Is used for text decodingIOException - DOCUMENT ME!public Payload(byte[] load,
String charsetName)
throws IOException
load - DOCUMENT ME!charsetName - DOCUMENT ME!IOException - DOCUMENT ME!public String asText()
public byte[] asBytes()
public boolean containsException()
Copyright © 2012–2025 cismet GmbH. All rights reserved.