Mercurial > hg > Database > Alice
view src/main/java/alice/test/codesegment/remote/compress/StartTestCompress.java @ 596:2b8e6b8b5d20 dispose
minor fix
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 10 Feb 2016 20:04:22 +0900 |
parents | 64f1762e2942 |
children | f5322e53bbf6 |
line wrap: on
line source
package alice.test.codesegment.remote.compress; import alice.codesegment.CodeSegment; import javassist.bytecode.ByteArray; import java.io.*; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; /** * Created by e125769 on 2/9/16. */ public class StartTestCompress extends CodeSegment{ @Override public void run() { System.out.println("run StartCodeSegment"); Path path = Paths.get("./AliceText.txt"); byte[] data = new byte[1024*100]; try { data = Files.readAllBytes(path); } catch (IOException e) { e.printStackTrace(); } TestCompress cs = new TestCompress(100); long time = System.currentTimeMillis(); ods.put("local", "time", time); ods.put("remote", "data", data); } }