commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Bodewig (JIRA)" <>
Subject [jira] [Commented] (COMPRESS-147) Add a Snappy compressor
Date Sat, 09 Nov 2013 16:59:17 GMT


Stefan Bodewig commented on COMPRESS-147:

Good I haven't started coding anything, yet.

I didn't mean t buffer the whole content, quite the opposite.  The general contract of Inflater
that I intended to mirror is 

* call setInput with some stuff read, not with the whole content of the stream
* repeatedly call inflate  (and do with the uncompressed data whatever is your task) until
the Inflater signals it needs more input (in which case you provide the next chunk) or says
it is done

But let me take a step back.  What I really don't like is the API of writing to an OutputStream
directly.  This really makes it way more difficult to provide some InputStream on top of it.
 Would it be more in line with your needs if we turned it into an InputStream?  IOUtils.copy
could be used to turn it around.

> Add a Snappy compressor
> -----------------------
>                 Key: COMPRESS-147
>                 URL:
>             Project: Commons Compress
>          Issue Type: Wish
>          Components: Compressors
>            Reporter: Christian Grobmeier
>            Priority: Minor
>         Attachments:
> Add a Snappy compressor to the Compress lib. Currently there is only a C implementation
linked with JNI to Java.
> [1]
> [2]

This message was sent by Atlassian JIRA

View raw message