@Test public void testWrite_AllCompressed() throws IOException { TypedRange<JreDeflateParameters> range = new TypedRange<JreDeflateParameters>( 0, ENTRY1.getUncompressedBinaryContent().length, PARAMS1); stream = new PartiallyCompressingOutputStream(Collections.singletonList(range), outBuffer, 32768); stream.write(ENTRY1.getUncompressedBinaryContent()); stream.flush(); Assert.assertArrayEquals(ENTRY1.getCompressedBinaryContent(), outBuffer.toByteArray()); }
@Override public void write(int b) throws IOException { internalCopyBuffer[0] = (byte) b; write(internalCopyBuffer, 0, 1); }
PartiallyCompressingOutputStream extends FilterOutputStream { @Override public void write(int b) throws IOException { internalCopyBuffer[0] = (byte) b; write(internalCopyBuffer, 0, 1); } }
PartiallyCompressingOutputStream extends FilterOutputStream { @Override public void write(int b) throws IOException { internalCopyBuffer[0] = (byte) b; write(internalCopyBuffer, 0, 1); } PartiallyCompressingOutputStream(
      List<TypedRange<JreDeflateParameters>> compressionRanges,
      OutputStream out,
      int compressionBufferSize); }
PartiallyCompressingOutputStream extends FilterOutputStream { @Override public void write(int b) throws IOException { internalCopyBuffer[0] = (byte) b; write(internalCopyBuffer, 0, 1); } PartiallyCompressingOutputStream(
      List<TypedRange<JreDeflateParameters>> compressionRanges,
      OutputStream out,
      int compressionBufferSize); @Override void write(int b); @Override void write(byte[] buffer); @Override void write(byte[] buffer, int offset, int length); }
PartiallyCompressingOutputStream extends FilterOutputStream { @Override public void write(int b) throws IOException { internalCopyBuffer[0] = (byte) b; write(internalCopyBuffer, 0, 1); } PartiallyCompressingOutputStream(
      List<TypedRange<JreDeflateParameters>> compressionRanges,
      OutputStream out,
      int compressionBufferSize); @Override void write(int b); @Override void write(byte[] buffer); @Override void write(byte[] buffer, int offset, int length);  }