Lines Matching defs:in
5 * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
35 * (and if the URI appears to be relative, not even then). Note in particular that this function
41 public void filter(String in, Appendable out) throws IOException {
42 if (!isValidUri(in)) {
46 applyEscaping(in, out);
55 protected abstract void applyEscaping(String in, Appendable out) throws IOException;
61 protected boolean isValidUri(String in) {
63 String maybeScheme = toLowerCaseAsciiOnly(in.substring(0, Math.min(in.length(), 8)));
72 int slashPos = in.indexOf('/');
75 return in.lastIndexOf(':', slashPos - 1) == -1;
78 return in.indexOf(':') == -1;