KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > compress > Compresser


1 /*
2  * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
3  * Initial Developer: H2 Group
4  */

5 package org.h2.compress;
6
7 import java.sql.SQLException JavaDoc;
8
9 public interface Compresser {
10
11     int NO = 0, LZF = 1, DEFLATE = 2;
12
13     int getAlgorithm();
14     int compress(byte[] in, int inLen, byte[] out, int outPos);
15     void expand(byte[] in, int inPos, int inLen, byte[] out, int outPos, int outLen) throws Exception JavaDoc;
16     void setOptions(String JavaDoc options) throws SQLException JavaDoc;
17 }
18
Popular Tags