Mercurial > hg > Members > riono > TreeVNC_ja_comment
view src/main/java/jp/ac/u_ryukyu/treevnc/test/ZlibTest.java @ 536:170b1e852b26
add zlidTest
author | riono210 |
---|---|
date | Wed, 05 Jun 2019 16:26:28 +0900 |
parents | |
children | 6620e04f994c |
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(); } }