示例#1
0
 /**
  * Creates a new output stream with the specified buffer size.
  *
  * @param out the output stream
  * @param size the output buffer size
  * @exception IOException If an I/O error has occurred.
  * @exception IllegalArgumentException if size is <= 0
  */
 public GZIPOutputStream(OutputStream out, int size) throws IOException {
   super(out, new Deflater(Deflater.DEFAULT_COMPRESSION, true), size);
   usesDefaultDeflater = true;
   writeHeader();
   crc.reset();
 }