title: parse escape character as a byte
body: <p>I send requests from a client socket to a server socket and i want to differenciate requests(send as a byte array) using a escape character("\n"). I want to have one request per new line
  exemple : </p>
  
  <pre><code>"Request1 "
  "Request2"
  "Request3"
  </code></pre>
  
  <p>In order to do this , i need to convert the "\n" in byte in order to compare the requests like this</p>
  
  <pre><code>    byte[] request= new byte[1024];
      int nextByte;
          while((nextByte=in.read(request))!=DELIMITER)
          {
  
          String chaine = new String( request,0,nextByte);
          System.out.println("Request send from server: " + chaine);
         }
  </code></pre>
  
  <p>The problm is that i get an number format exception when i am trying to convert "\n" in byte</p>
  
  <pre><code>private static final byte DELIMITER = Byte.valueOf("\n");
  </code></pre>
  
  <p>Thank you very much</p>