code: private void skipToProject() throws IOException {
          final byte[] buffer = new byte[BUFFER_SIZE];
          super.mark(BUFFER_SIZE);
          int count = super.read(buffer, 0, BUFFER_SIZE);
          while (count > 0) {
              final int pos = findSequence(PROJECT, buffer);
              if (pos >= 0) {
                  super.reset();
                  super.skip(pos);
                  return;
              } else if (count - PROJECT.length == 0) {
                  return;
              }
              super.reset();
              super.skip(count - PROJECT.length);
              super.mark(BUFFER_SIZE);
              count = super.read(buffer, 0, BUFFER_SIZE);
          }
      }
docs: Skips bytes from the input stream until it finds the &lt;project&gt;
  element.
  
  @throws IOException thrown if an I/O error occurs