code: private static boolean checkHeader(InputStream input, int[] header) throws IOException
      {
          for (final int b : header)
          {
              if (b != input.read())
              {
                  return false;
              }
          }
          return true;
      }
docs: Check header data.
  
  @param input The input stream to check.
  @param header The expected header.
  @return <code>true</code> if right header, <code>false</code> else.
  @throws IOException If unable to read header.