Alex Herbert created CODEC-289:
----------------------------------

             Summary: Base32/64Input/OutputStream to allow optional 
strict/lenient decoding
                 Key: CODEC-289
                 URL: https://issues.apache.org/jira/browse/CODEC-289
             Project: Commons Codec
          Issue Type: Improvement
    Affects Versions: 1.14
            Reporter: Alex Herbert
            Assignee: Alex Herbert


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:

{code:java}
public void setStrictDecoding(boolean strictDecoding) {
   baseNCodec.setStrictDecoding(strictDecoding);
}

public boolean isStrictDecoding() {
   return baseNCodec.isStrictDecoding();
}
{code}

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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to