コード例 #1
0
ファイル: LZMA2OutputStream.java プロジェクト: AsamK/openzim
 private void writeEndMarker() throws IOException {
   // TODO: Flush incomplete chunk.
   out.write(0x00);
 }
コード例 #2
0
 public void write(byte[] buf, int off, int len) throws IOException {
   filterChain.write(buf, off, len);
   check.update(buf, off, len);
   uncompressedSize += len;
   validate();
 }
コード例 #3
0
ファイル: LZMA2OutputStream.java プロジェクト: AsamK/openzim
 private void writeChunk(byte[] buf, int off, int len) throws IOException {
   out.write(0x01);
   out.write((len - 1) >>> 8);
   out.write(len - 1);
   out.write(buf, off, len);
 }