Mercurial > hg > Members > riono > TreeVNC_ja_comment
view src/main/java/jp/ac/u_ryukyu/treevnc/test/ZlibTest.java @ 538:6620e04f994c
fix ZRLEDecoder
author | riono |
---|---|
date | Thu, 13 Jun 2019 18:19:53 +0900 |
parents | 170b1e852b26 |
children |
line wrap: on
line source
package jp.ac.u_ryukyu.treevnc.test; import com.glavsoft.rfb.encoding.decoder.ZRLEDecoder; import java.io.IOException; import java.nio.ByteBuffer; import java.util.zip.Deflater; public class ZlibTest { private ZRLEDecoder zrleDecoder; private Deflater deflater; public void zlibTest() throws IOException { deflater = new Deflater(); ByteBuffer input = ByteBuffer.allocate(64 * 1024); ByteBuffer output ; while (System.in.available() > 0) { int length = System.in.read(input.array(), input.position(), input.remaining()); input.position(input.position() + length); } } public static void main(String args[]) throws IOException { new ZlibTest().zlibTest(); } }