comparison src/myVncProxy/MyRfbProto.java @ 97:145506601e0d

minor comment
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 03 Aug 2011 15:02:37 +0900
parents f0790bcf000d
children 3db7ac2b10f7
comparison
equal deleted inserted replaced
96:f0790bcf000d 97:145506601e0d
538 int len1=0,len = 0; 538 int len1=0,len = 0;
539 deflater.reset(); 539 deflater.reset();
540 while(inputIndex < inputs.size()) { 540 while(inputIndex < inputs.size()) {
541 ByteBuffer b1 = inputs.get(inputIndex++); 541 ByteBuffer b1 = inputs.get(inputIndex++);
542 deflater.setInput(b1.array(),b1.position(),b1.limit()); 542 deflater.setInput(b1.array(),b1.position(),b1.limit());
543 if (inputs.size()==0) { 543 if (inputIndex==inputs.size()) {
544 deflater.finish(); 544 deflater.finish();
545 } 545 }
546 do { 546 do {
547 ByteBuffer c1 = ByteBuffer.allocate(INFLATE_BUFSIZE); 547 ByteBuffer c1 = ByteBuffer.allocate(INFLATE_BUFSIZE);
548 len1 = deflater.deflate(c1.array(),c1.position(),c1.capacity()); 548 len1 = deflater.deflate(c1.array(),c1.position(),c1.capacity());
567 * @throws IOException 567 * @throws IOException
568 */ 568 */
569 public int unzip(Inflater inflater, LinkedList<ByteBuffer> inputs, LinkedList<ByteBuffer> outputs) 569 public int unzip(Inflater inflater, LinkedList<ByteBuffer> inputs, LinkedList<ByteBuffer> outputs)
570 throws DataFormatException { 570 throws DataFormatException {
571 int len=0,len0; 571 int len=0,len0;
572 // inflater.reset(); 572 inflater.reset();
573 int inputIndex = 0; 573 int inputIndex = 0;
574 do { 574 do {
575 ByteBuffer input = inputs.get(inputIndex++); 575 ByteBuffer input = inputs.get(inputIndex++);
576 inflater.setInput(input.array(),0,input.limit()); 576 inflater.setInput(input.array(),0,input.limit());
577 do { 577 do {