Use apache compression commons for compressing gzip

This commit is contained in:
Adam
2015-10-17 16:07:41 -04:00
parent 9125e65e60
commit 5e28fe9768
6 changed files with 80 additions and 35 deletions

View File

@@ -64,4 +64,18 @@ public class DataFileTest
Assert.assertEquals("test", str);
}
}
// @Test
// public void testBZip2Compression() throws IOException
// {
// try (Store store = new Store(folder.getRoot()))
// {
// DataFile df = new DataFile(store, folder.newFile());
// DataFileWriteResult res = df.write(41, 4, ByteBuffer.wrap("test".getBytes()), 1, 0);
// DataFileReadResult res2 = df.read(41, 4, res.sector, res.compressedLength);
// byte[] buf = res2.data;
// String str = new String(buf);
// Assert.assertEquals("test", str);
// }
// }
}

View File

@@ -5,7 +5,7 @@ import org.junit.Test;
public class StoreLoadTest
{
//@Test
@Test
public void test() throws IOException
{
Store store = new Store(new java.io.File("d:/rs/07/cache"));//c:/rs/cache"));