public OutputStream getOutputStream() throws java.io.IOException{
        if (outputStream == null){
            setOutputStream(socket.getOutputStream());
        }
        return outputStream;
    }