Class StringBase64Decoder


  • public final class StringBase64Decoder
    extends Base64DecoderBase
    Base64 decoder that can be used to decode base64 encoded content that is passed as a Single string.
    • Field Detail

      • _currSegment

        java.lang.String _currSegment
        Base64 content String being currently processed.
      • _currSegmentPtr

        int _currSegmentPtr
      • _currSegmentEnd

        int _currSegmentEnd
    • Constructor Detail

      • StringBase64Decoder

        public StringBase64Decoder()
    • Method Detail

      • init

        public void init​(Base64Variant variant,
                         boolean firstChunk,
                         java.lang.String segment)
      • decode

        public int decode​(byte[] resultBuffer,
                          int resultOffset,
                          int maxLength)
                   throws java.lang.IllegalArgumentException
        Description copied from class: Base64DecoderBase
        Method that does actual decoding
        Specified by:
        decode in class Base64DecoderBase
        Parameters:
        resultBuffer - Buffer in which decoded bytes are returned
        resultOffset - Offset that points to position to put the first decoded byte in maxLength Maximum number of bytes that can be returned in given buffer
        Returns:
        Number of bytes decoded and returned in the result buffer
        Throws:
        java.lang.IllegalArgumentException