protected void writeEntry ( final GZIPArchive . Entry entry ) throws IOException { // ID1 ID2 CM FLG this . output . write ( GZIPArchive . GZIP_START ) ; // MTIME writeLEInt ( this . output , entry . mtime ) ; // XFL OS this . output . write ( GZIPArchive . XFL_OS ) ; /* EXTRA begin */ // XLEN writeLEShort ( this . output , GZIPArchive . XLEN ) ; // SI1 SI2 (as in warc spec) this . output . write ( GZIPArchive . SKIP_LEN ) ; // LEN writeLEShort ( this . output , GZIPArchive . SUB_LEN ) ; // compressed-skip-length (as in warc spec) writeLEInt ( this . output , entry . compressedSkipLength ) ; // uncompressed length (as in warc spec) writeLEInt ( this . output , entry . uncompressedSkipLength ) ; /* EXTRA end */ // NAME this . output . write ( entry . name ) ; this . output . write ( 0 ) ; // COMMENT this . output . write ( entry . comment ) ; this . output . write ( 0 ) ; // compressed blocks this . output . write ( deflaterStream . array , 0 , deflaterStream . length ) ; // CRC32 writeLEInt ( this . output , entry . crc32 ) ; // ISIZE writeLEInt ( this . output , entry . uncompressedSkipLength ) ; }
Writes the entry on the underlying stream .