code: private byte[] encode(byte[] input) throws EncoderException
      {
          if (encoder != null)
          {
              return encoder.encode(input);
          }
          else
          {
              return DEFAULT_CODER.encode(input);
          }
      }
docs: Encode the byte array using {@link #encoder}, or using
  {@link #DEFAULT_CODER} if {@code encoder} is {@code null}.