code: public void setPattern(byte[] pattern) {
      pattern_ = Arrays.copyOf(pattern, pattern.length);
      borders_ = new int[pattern_.length + 1];
      preProcess();
    }
docs: Sets a new pattern for this StreamSearcher to use.
  @param pattern
  the pattern the StreamSearcher will look for in future calls to search(...)