commons-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/COMPRESS-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818197#comment-13818197
] 

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: https://issues.apache.org/jira/browse/COMPRESS-147
>             Project: Commons Compress
>          Issue Type: Wish
>          Components: Compressors
>            Reporter: Christian Grobmeier
>            Priority: Minor
>         Attachments: SnappyDecompressor.java
>
>
> Add a Snappy compressor to the Compress lib. Currently there is only a C implementation
linked with JNI to Java.
> [1] http://code.google.com/p/snappy/
> [2] http://code.google.com/p/snappy-java/



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message