code: public static boolean skipUntil(Reader in, String separator) throws IOException {
          if (separator == null) {
              throw new NullPointerException("Null separator given");
          }
          final int len = separator.length();
          if(len > 0) {
              if(len == 1) { return skipUntil(in, separator.charAt(0)); }
              return skipUntilInternal(in, separator.toCharArray(), new char[len]);
          }
          return true;
      }
docs: Skip all bytes in stream until (and including) given separator is found.
  
  @param in Input stream to read from.
  @param separator Separator bytes to skip until.
  @return True iff the separator was encountered.
  @throws IOException if unable to read from stream.