Lines Matching refs:marker
33 * by a marker string and suffixed by a newline character.
43 private final String marker;
53 public InterleavedReader(String marker, Reader reader) {
54 if (marker.length() > BUFFER_LENGTH) {
55 throw new IllegalArgumentException("marker.length() > BUFFER_LENGTH");
57 this.marker = marker;
93 // return the characters that precede the marker
98 if (count < marker.length()) {
99 // the buffer contains only the prefix of a marker so we must read more
103 // we've read a marker so return the value that follows
105 String json = reader.readLine().substring(marker.length());
124 * Returns the index of marker in {@code chars}, stopping at {@code limit}.
125 * Should the chars end with a prefix of marker, the offset of that prefix
131 for (int m = 0; m < marker.length() && i + m < limit; m++) {
132 if (chars[i + m] != marker.charAt(m)) {