title: Check if byte array are all in 0xff
body: <p>Is there a simple way to check without looping whether a byte array in java has all 0xFF as values?</p>
  
  <p>example</p>
  
  <pre><code>byte[] b = new byte[]{ 0xff, 0xff, 0xff, 0xff, 0xff };
  
  if (b is all 'ff')
      process?
  </code></pre>