|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.synapse.securevault.EncodingHelper
public final class EncodingHelper
Helper to handle encoding and decoding of data streams.
Method Summary | |
---|---|
static InputStream |
decode(InputStream inputStream,
EncodingType encodingType)
Decodes the provided InputStream using the specified encoding type. |
static byte[] |
encode(ByteArrayOutputStream baos,
EncodingType encodingType)
Encodes the provided ByteArrayOutputStream using the specified encoding type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] encode(ByteArrayOutputStream baos, EncodingType encodingType)
baos
- The ByteArrayOutputStream to encodeencodingType
- The encoding to use
public static InputStream decode(InputStream inputStream, EncodingType encodingType) throws IOException
inputStream
- The InputStream to decodeencodingType
- The encoding to use
IOException
- If an error occurs decoding the input stream
IllegalArgumentException
- if the specified encodingType is not supported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |