/** * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to * the given stream with the given internal buffer size and * flushing behavior (see {@link DeflaterOutputStream#flush}). * @since 1.7 */ public GZIPOutputStream(OutputStream os, int bufferSize, boolean syncFlush) throws IOException { super(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true), bufferSize, syncFlush); writeShort(GZIPInputStream.GZIP_MAGIC); out.write(Deflater.DEFLATED); out.write(0); // flags writeLong(0); // mod time out.write(0); // extra flags out.write(0); // operating system }
/** * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to * the given stream with the given internal buffer size and * flushing behavior (see {@link DeflaterOutputStream#flush}). * @since 1.7 */ public GZIPOutputStream(OutputStream os, int bufferSize, boolean syncFlush) throws IOException { super(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true), bufferSize, syncFlush); writeShort(GZIPInputStream.GZIP_MAGIC); out.write(Deflater.DEFLATED); out.write(0); // flags writeLong(0); // mod time out.write(0); // extra flags out.write(0); // operating system }
/** * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to * the given stream with the given internal buffer size and * flushing behavior (see {@link DeflaterOutputStream#flush}). * @since 1.7 */ public GZIPOutputStream(OutputStream os, int bufferSize, boolean syncFlush) throws IOException { super(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true), bufferSize, syncFlush); writeShort(GZIPInputStream.GZIP_MAGIC); out.write(Deflater.DEFLATED); out.write(0); // flags writeLong(0); // mod time out.write(0); // extra flags out.write(0); // operating system }
/** * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to * the given stream with the given internal buffer size and * flushing behavior (see {@link DeflaterOutputStream#flush}). * @since 1.7 */ public GZIPOutputStream(OutputStream os, int bufferSize, boolean syncFlush) throws IOException { super(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true), bufferSize, syncFlush); writeShort(GZIPInputStream.GZIP_MAGIC); out.write(Deflater.DEFLATED); out.write(0); // flags writeLong(0); // mod time out.write(0); // extra flags out.write(0); // operating system }
/** * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to * the given stream with the given internal buffer size and * flushing behavior (see {@link DeflaterOutputStream#flush}). * @since 1.7 */ public GZIPOutputStream(OutputStream os, int bufferSize, boolean syncFlush) throws IOException { super(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true), bufferSize, syncFlush); writeShort(GZIPInputStream.GZIP_MAGIC); out.write(Deflater.DEFLATED); out.write(0); // flags writeLong(0); // mod time out.write(0); // extra flags out.write(0); // operating system }
/** * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to * the given stream with the given internal buffer size and * flushing behavior (see {@link DeflaterOutputStream#flush}). * @since 1.7 */ public GZIPOutputStream(OutputStream os, int bufferSize, boolean syncFlush) throws IOException { super(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true), bufferSize, syncFlush); writeShort(GZIPInputStream.GZIP_MAGIC); out.write(Deflater.DEFLATED); out.write(0); // flags writeLong(0); // mod time out.write(0); // extra flags out.write(0); // operating system }
/** * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to * the given stream with the given internal buffer size and * flushing behavior (see {@link DeflaterOutputStream#flush}). * @since 1.7 */ public GZIPOutputStream(OutputStream os, int bufferSize, boolean syncFlush) throws IOException { super(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true), bufferSize, syncFlush); writeShort(GZIPInputStream.GZIP_MAGIC); out.write(Deflater.DEFLATED); out.write(0); // flags writeLong(0); // mod time out.write(0); // extra flags out.write(0); // operating system }
/** * Constructs a new {@code GZIPOutputStream} to write data in GZIP format to * the given stream with the given internal buffer size and * flushing behavior (see {@link DeflaterOutputStream#flush}). * @since 1.7 */ public GZIPOutputStream(OutputStream os, int bufferSize, boolean syncFlush) throws IOException { super(os, new Deflater(Deflater.DEFAULT_COMPRESSION, true), bufferSize, syncFlush); writeShort(GZIPInputStream.GZIP_MAGIC); out.write(Deflater.DEFLATED); out.write(0); // flags writeLong(0); // mod time out.write(0); // extra flags out.write(0); // operating system }