Mercurial > hg > Members > you > TreeVNC
changeset 49:13dadbb4aa5f
add splitBufferTest.java
author | one |
---|---|
date | Sat, 05 May 2012 18:38:10 +0900 |
parents | e6d5ec9ec15e |
children | f77309fa8a9c |
files | src/treeVnc/MyRfbProtoProxy.java |
diffstat | 1 files changed, 1 insertions(+), 58 deletions(-) [+] |
line wrap: on
line diff
--- a/src/treeVnc/MyRfbProtoProxy.java Fri May 04 01:00:02 2012 +0900 +++ b/src/treeVnc/MyRfbProtoProxy.java Sat May 05 18:38:10 2012 +0900 @@ -1160,41 +1160,9 @@ ByteBuffer buf1 = ByteBuffer.allocate(INFLATE_BUFSIZE); if(tempBuf.remaining()>tempDataLen) tempBuf.get(buf1.array(), 0, tempDataLen); - /* - if(buf1.get(0)!=0) { - System.out.println("error"); - } - */ buf1.limit(tempDataLen); output.addLast(buf1); createHeader(header, i, height, y); - /* - if(g==1) { - // in this area - // in this area - DataOutputStream dataOutStream = - new DataOutputStream( - new BufferedOutputStream( - new FileOutputStream("./log.tex"))); - for(ByteBuffer b : testB){ - dataOutStream.write(b.array(), 0, b.remaining()); - } - DataOutputStream dataOutStream1 = - new DataOutputStream( - new BufferedOutputStream( - new FileOutputStream("./header.txt"))); - dataOutStream1.write(testBuffer.array(), 0, testBuffer.remaining()); - System.out.println("-----------"); - - } - */ - if(header.getShort(10) > 1080) { - System.out.println("error"); - } - if(header.getShort(10)!=128) { - - // System.out.println(header.getShort(10)); - } zipSplitData(header, output); output.clear(); // checkPallet(output); @@ -1220,32 +1188,7 @@ if(count==0) preserv -= 1; createHeader(header, preserv + 1, height, y); -/* - if(g==1) { - // in this area - DataOutputStream dataOutStream = - new DataOutputStream( - new BufferedOutputStream( - new FileOutputStream("./log.txt"))); - for(ByteBuffer b : testB){ - dataOutStream.write(b.array(), 0, b.remaining()); - } - - DataOutputStream dataOutStream1 = - new DataOutputStream( - new BufferedOutputStream( - new FileOutputStream("./header.tex"))); - dataOutStream1.write(testBuffer.array(), 0, testBuffer.remaining()); - System.out.println("-----------"); - } - */ - if(header.getShort(10) > 1080) { - System.out.println("error"); - } - if(header.getShort(10)!=128) { - zipSplitData(header, output); - // System.out.println(header.getShort(10)); - } + zipSplitData(header, output); output.clear(); return output;