Re: LzoCodec not working correctly?

2007-06-01 Thread Espen Amble Kolstad
Hi Arun, TestCodec only writes once to the deflateFilter, that's why the test works with LzoCodec. I've tried out the change mentioned below, on streaming data as well as compressing files, and it works. I have one app that sends ~200MB (uncompressed size) lzo-compressed data over http

Re: LzoCodec not working correctly?

2007-05-31 Thread Arun C Murthy
Espen Amble Kolstad wrote: Hi, I changed LzoCompressor.finished() from: public synchronized boolean finished() { // ... return (finished compressedDirectBuf.remaining() == 0); } to: public synchronized boolean finished() { // ... return (finish

Re: LzoCodec not working correctly?

2007-05-25 Thread Espen Amble Kolstad
Hi, I changed LzoCompressor.finished() from: public synchronized boolean finished() { // ... return (finished compressedDirectBuf.remaining() == 0); } to: public synchronized boolean finished() { // ... return (finish compressedDirectBuf.remaining() == 0); } And it

LzoCodec not working correctly?

2007-05-24 Thread Espen Amble Kolstad
Hi, I've been trying to use LzoCodec to write a compressed file: public class LzoTest { public static void main(String[] args) throws Exception { final LzoCodec codec = new LzoCodec(); codec.setConf(new Configuration()); final CompressionOutputStream out =