public void write(byte[] buffer){
  if (_debug)   Log.d(TAG,"write: " + buffer.length + " bytes to write");
  try {
    _outputStream.write(buffer);
    _outputStream.write(0);
  }
 catch (  IOException e) {
    Log.e(TAG,"Exception during write",e);
  }
}

public void write ( byte [ ] buffer ) { if ( _debug ) Log . d ( TAG , "write: " + buffer . length + " bytes to write" ) ; try { _outputStream . write ( buffer ) ; _outputStream . write ( 0 ) ; } catch ( IOException e ) { Log . e ( TAG , "Exception during write" , e ) ; } }
write to the connected outstream .
