[ 
http://issues.apache.org/jira/browse/CODEC-8?page=comments#action_12431380 ] 
            
Jochen Wiedmann commented on CODEC-8:
-------------------------------------


Remi Arntzen wrote:

> As far as I can tell the ws-common-utils Base64 streams are only output 
> streams for encoding and decoding. 

Please note the Encoder and Decoder classes. All other objects and methods (for 
example the EncoderOutputStream or the SAXEncoder) are derived via subclassing 
or composition from these objects.


> REQ: Streaming codecs
> ---------------------
>
>                 Key: CODEC-8
>                 URL: http://issues.apache.org/jira/browse/CODEC-8
>             Project: Commons Codec
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Operating System: All
> Platform: All
>            Reporter: Sergei S. Ivanov
>         Attachments: Base64.diff
>
>
> I would really appreciate if, for example, Base64 encoder could operate on
> streams. One reason is that it's much easier to attach ByteArrayInputStream to
> an array of bytes that to copy a byte array into a stream. The other reason is
> greater flexibility, given by the streams.
> I'd suggest creating a pair of new interfaces:
> public interface StreamingDecoder implements Decoder {
>   public void decode(InputStream in, OutputStream out) throws 
> DecoderException;
> }
> public interface StreamingEncoder implements Encoder {
>   public void encode(InputStream in, OutputStream out) throws 
> EncoderException;
> }
> Base64 and Hex will then be able to implement these interfaces.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to