title: DataOutputStream doesn't write entire integer on serialport
body: <p>I'm looking for a solution for my problem with the Java DataOutputStream class.</p>
  
  <p>I would like to send a 8-bit binary value to a micro controller which should be it's new address. So I tried to use the function DataOutputStream.writeByte(int arg0);</p>
  
  <p>When I try to send the address <code>110</code> with the following code, I can see on the scope, that the serialport is sending 4 bytes ascii code <code>"1","1","0","LF"</code> but i would like to have <code>01101110</code> on the port. Do you see where I made the mistake?</p>
  
  <pre><code>SerialPort serialPort;
  DataOutputStream outputStream;
  
  
      void sendeSerialPort(int adresse)
          {
              System.out.println("Sende: " + adresse);
              if (serialPortGeoeffnet != true)
                  return;
              try {
                  outputStream.writeByte(adresse);
                  } 
              catch (IOException e) {
              System.out.println("Error when sending");
              }
          }
  </code></pre>
  
  <p>Thank you</p>
  
  <p>Edit: This is what it looks like on the scope:</p>
  
  <p><a href="http://i.stack.imgur.com/Cm8tp.png" rel="nofollow">110 sent as int with outputStream.writeByte(int) </a></p>