JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
org.apache.synapse.securevault

Class EncodingHelper



  • public final class EncodingHelper
    extends Object 
    Helper to handle encoding and decoding of data streams.
    • Method Detail

      • encode

        public static byte[] encode(ByteArrayOutputStream baos,
         EncodingType encodingType)
        Encodes the provided ByteArrayOutputStream using the specified encoding type.
        Parameters:
        baos - The ByteArrayOutputStream to encode
        encodingType - The encoding to use
        Returns:
        The encoded ByteArrayOutputStream as a String
      • decode

        public static InputStream decode(InputStream inputStream,
         EncodingType encodingType)
         throws IOException 
        Decodes the provided InputStream using the specified encoding type.
        Parameters:
        inputStream - The InputStream to decode
        encodingType - The encoding to use
        Returns:
        The decoded InputStream
        Throws:
        IOException - If an error occurs decoding the input stream
        IllegalArgumentException - if the specified encodingType is not supported
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.

AltStyle によって変換されたページ (->オリジナル) /