*/
public class ContinousInflaterInputStreamTest extends TestCase {
public void testContinuous() throws IOException {
FastByteArrayOutputStream out = new FastByteArrayOutputStream(8192);
DeflaterOutputStream def1 = new DeflaterOutputStream(out, new Deflater(Deflater.DEFAULT_COMPRESSION, false), 100);
IOUtils.writeString("1", def1);
IOUtils.writeInt(2, def1);
def1.close();
DeflaterOutputStream def2 = new DeflaterOutputStream(out, new Deflater(Deflater.DEFAULT_COMPRESSION, false), 100);
IOUtils.writeString("3", def2);
IOUtils.writeString("4", def2);
def2.close();
DeflaterOutputStream def3 = new DeflaterOutputStream(out, new Deflater(Deflater.DEFAULT_COMPRESSION, false), 100);
IOUtils.writeString("5", def3);
IOUtils.writeString("6", def3);
def3.close();
byte[] b = out.toByteArray();