public synchronized void init() throws IOException {
  if (socket != null) {
    in=new DataInputStream(new BufferedInputStream(socket.getInputStream(),Transfer.BUFFER_SIZE));
    out=new DataOutputStream(new BufferedOutputStream(socket.getOutputStream(),Transfer.BUFFER_SIZE));
  }
}

public synchronized void init ( ) throws IOException { if ( socket != null ) { in = new DataInputStream ( new BufferedInputStream ( socket . getInputStream ( ) , Transfer . BUFFER_SIZE ) ) ; out = new DataOutputStream ( new BufferedOutputStream ( socket . getOutputStream ( ) , Transfer . BUFFER_SIZE ) ) ; } }
initialize the transfer object . this method will try to open an input and output stream .
