1 2 29 30 package com.jcraft.jhttptunnel; 31 32 import java.io.*; 33 34 abstract class OutBound extends Bound{ 35 static final private int CONTENT_LENGTH=1024; 36 private int content_length=CONTENT_LENGTH; 37 int sendCount; 38 public void setContentLength(int content_length){ 39 this.content_length=content_length; 40 } 41 protected int getContentLength(){return content_length;} 42 43 abstract void sendData(byte[] foo, int s, int l, boolean flush) throws IOException; 44 } 45 | Popular Tags |