Class ValueEncoderFactory.Base64Encoder

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Base64Encoder​(Base64Variant v, byte[] values, int from, int end)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int encodeMore​(byte[] buffer, int outPtr, int outEnd)  
      int encodeMore​(char[] buffer, int outPtr, int outEnd)  
      boolean isCompleted()
      Method that can alternatively be called to determine whether encoder has encoded all data it has.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Base64Encoder

        protected Base64Encoder​(Base64Variant v,
                                byte[] values,
                                int from,
                                int end)
    • Method Detail

      • encodeMore

        public int encodeMore​(char[] buffer,
                              int outPtr,
                              int outEnd)
        Specified by:
        encodeMore in class AsciiValueEncoder
        Returns:
        Value of pointer after all remaining data (which may be "none") that can be encoded (as constrained by buffer length) has been encoded. Has to exceed 'ptr' value sent in; will be equal to it if nothing was encoded (which should only occur when everything has been encoded, as long as AsciiValueEncoder.bufferNeedsFlush(int) is appropriately called once before calling this method)
      • encodeMore

        public int encodeMore​(byte[] buffer,
                              int outPtr,
                              int outEnd)
        Specified by:
        encodeMore in class AsciiValueEncoder
        Returns:
        Value of pointer after all remaining data (which may be "none") that can be encoded (as constrained by buffer length) has been encoded. Has to exceed 'ptr' value sent in; will be equal to it if nothing was encoded (which should only occur when everything has been encoded, as long as AsciiValueEncoder.bufferNeedsFlush(int) is appropriately called once before calling this method)