public DatagramReader(final byte[] byteArray){
  byteStream=new ByteArrayInputStream(Arrays.copyOf(byteArray,byteArray.length));
  currentByte=0;
  currentBitIndex=-1;
}

public DatagramReader ( final byte [ ] byteArray ) { byteStream = new ByteArrayInputStream ( Arrays . copyOf ( byteArray , byteArray . length ) ) ; currentByte = 0 ; currentBitIndex = - 1 ; }
creates a new reader for an array of bytes .
