@Test public void testWrite_NoneCompressed() throws IOException { stream = new PartiallyCompressingOutputStream( Collections.<TypedRange<JreDeflateParameters>>emptyList(), outBuffer, 32768); byte[] input = new byte[] {1, 77, 66, 44, 22, 11}; byte[] expected = input.clone(); stream.write(input); stream.flush(); Assert.assertArrayEquals(expected, 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);  }