Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-289

Base32/64Input/OutputStream to allow optional strict/lenient decoding

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.14
    • 1.15
    • None

    Description

      Add the strict decoding option from the Base32/64 decoder to the Input/OutputStream versions.

      Requires adding a property to BaseNCodecInputStream and BaseNCodecOutputStream to pass through to the underlying decoder:

      public void setStrictDecoding(boolean strictDecoding) {
         baseNCodec.setStrictDecoding(strictDecoding);
      }
      
      public boolean isStrictDecoding() {
         return baseNCodec.isStrictDecoding();
      }
      

      This would allow Base32/64 Input/Output streams to use the strict decoding mode. Default behaviour would be lenient decoding for backward compatibility.

      Attachments

        Issue Links

          Activity

            People

              aherbert Alex Herbert
              aherbert Alex Herbert
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: