public void putreq_vline ( String msg ) throws SoccomException { int length = msg . length ( ) ; if ( msg . charAt ( length - 1 ) == ' ' ) { logline ( "SEND: " + msg . substring ( 0 , length - 1 ) ) ; } else { logline ( "SEND: " + msg ) ; msg += "\n" ; } byte msgbytes [ ] = msg . getBytes ( ) ; try { _out . write ( msgbytes ) ; } catch ( IOException e ) { throw new SoccomException ( SoccomException . REQUEST ) ; } }
Send a line as a part of a variable - size request message .