/**
  * Constructs an InflaterOutputStream with the specifed Inflater and
  * internal output buffer size.
  *
  * @param out
  *            the output stream that InflaterOutputStream will write
  *            compressed data into.
  * @param infl
  *            the Inflater used by the InflaterOutputStream to decompress
  *            data.
  * @param bufLen the size of the internal output buffer.
  */
 public InflaterOutputStream(java.io.OutputStream outJ, Inflater infl, int bufLen)
     : base(outJ)
 {
     if (null == outJ || null == infl) {
         throw new java.lang.NullPointerException();
     }
     if (bufLen <= 0) {
         throw new java.lang.IllegalArgumentException();
     }
     inf = infl;
     buf = new byte[bufLen];
 }
 /**
  * Constructs an InflaterOutputStream with the specifed Inflater and the
  * default internal output buffer size.
  *
  * @param out
  *            the output stream that InflaterOutputStream will write
  *            compressed data into.
  * @param infl
  *            the Inflater used by the InflaterOutputStream to decompress
  *            data.
  */
 public InflaterOutputStream(java.io.OutputStream outJ, Inflater infl)
     : this(outJ, infl, DEFAULT_BUFFER_SIZE)
 {
 }
Esempio n. 3
0
 public ZipInflaterInputStream(java.io.InputStream isJ, Inflater inf, int bsize, ZipEntry entry) : base(isJ, inf, bsize)
 {
     this.entry = entry;
 }
 /**
  * This constructor lets you specify both the {@code Inflater} as well as
  * the internal buffer size to be used.
  *
  * @param is
  *            the {@code InputStream} to read data from.
  * @param inf
  *            the specific {@code Inflater} for uncompressing data.
  * @param bsize
  *            the size to be used for the internal buffer.
  */
 public InflaterInputStream(java.io.InputStream isJ, Inflater inf, int bsize)
     : base(isJ)
 {
     if (isJ == null || inf == null) {
         throw new java.lang.NullPointerException();
     }
     if (bsize <= 0) {
         throw new java.lang.IllegalArgumentException();
     }
     this.inf = inf;
     buf = new byte[bsize];
 }
 /**
  * This constructor lets you pass a specifically initialized Inflater,
  * for example one that expects no ZLIB header.
  *
  * @param is
  *            the {@code InputStream} to read data from.
  * @param inf
  *            the specific {@code Inflater} for uncompressing data.
  */
 public InflaterInputStream(java.io.InputStream isJ, Inflater inf)
     : this(isJ, inf, BUF_SIZE)
 {
 }
Esempio n. 6
0
 /**
  * Constructs an InflaterOutputStream with the specifed Inflater and the
  * default internal output buffer size.
  *
  * @param out
  *            the output stream that InflaterOutputStream will write
  *            compressed data into.
  * @param infl
  *            the Inflater used by the InflaterOutputStream to decompress
  *            data.
  */
 public InflaterOutputStream(java.io.OutputStream outJ, Inflater infl) : this(outJ, infl, DEFAULT_BUFFER_SIZE)
 {
 }