Searched defs:mark (Results 1 - 23 of 23) sorted by relevance

/libcore/luni/src/main/java/java/io/
H A DFilterInputStream.java68 * Sets a mark position in this stream. The parameter {@code readlimit}
69 * indicates how many bytes can be read before the mark is invalidated.
73 * This implementation sets a mark in the filtered stream.
77 * the mark is invalidated.
82 public synchronized void mark(int readlimit) { method in class:FilterInputStream
83 in.mark(readlimit);
87 * Indicates whether this stream supports {@code mark()} and {@code reset()}.
91 * @return {@code true} if {@code mark()} and {@code reset()} are supported,
93 * @see #mark(int)
126 * if this stream is already closed, no mark ha
[all...]
H A DFilterReader.java62 * Sets a mark position in this reader. The parameter {@code readlimit}
63 * indicates how many bytes can be read before the mark is invalidated.
67 * This implementation sets a mark in the filtered reader.
71 * the mark is invalidated.
78 public synchronized void mark(int readlimit) throws IOException { method in class:FilterReader
80 in.mark(readlimit);
85 * Indicates whether this reader supports {@code mark()} and {@code reset()}.
88 * @return {@code true} if {@code mark()} and {@code reset()} are supported
90 * @see #mark(int)
161 * {@code mark()} an
[all...]
H A DInputStream.java117 * Sets a mark position in this InputStream. The parameter {@code readlimit}
118 * indicates how many bytes can be read before the mark is invalidated.
127 * the mark is invalidated.
131 public void mark(int readlimit) { method in class:InputStream
136 * Indicates whether this stream supports the {@code mark()} and
140 * @see #mark(int)
197 * {@code IOException} if the number of bytes read since the mark has been
198 * set is greater than the limit provided to {@code mark}, or if no mark
H A DByteArrayInputStream.java39 * The current mark position. Initially set to 0 or the <code>offset</code>
42 protected int mark; field in class:ByteArrayInputStream
58 this.mark = 0;
78 mark = offset;
104 * Sets a mark position in this ByteArrayInputStream. The parameter
114 public synchronized void mark(int readlimit) { method in class:ByteArrayInputStream
115 mark = pos;
119 * Indicates whether this stream supports the {@code mark()} and
124 * @see #mark(int)
166 * @see #mark(in
[all...]
H A DLineNumberInputStream.java80 * Sets a mark position in this stream. The parameter {@code readlimit}
81 * indicates how many bytes can be read before the mark is invalidated.
87 * This implementation sets a mark in the filtered stream.
91 * the mark is invalidated.
96 public void mark(int readlimit) { method in class:LineNumberInputStream
97 in.mark(readlimit);
184 * if this stream is already closed, no mark has been set or the
185 * mark is no longer valid because more than {@code readlimit}
186 * bytes have been read since setting the mark.
187 * @see #mark(in
[all...]
H A DReader.java79 * Sets a mark position in this reader. The parameter {@code readLimit}
80 * indicates how many characters can be read before the mark is invalidated.
88 * the number of characters that can be read before the mark is
93 * if an error occurs while setting a mark in this reader.
97 public void mark(int readLimit) throws IOException { method in class:Reader
102 * Indicates whether this reader supports the {@code mark()} and
173 * Resets this reader's position to the last {@code mark()} location.
181 * @see #mark(int)
199 * @see #mark(int)
H A DStringReader.java70 * Sets a mark position in this reader. The parameter {@code readLimit} is
84 public void mark(int readLimit) throws IOException { method in class:StringReader
102 * Indicates whether this reader supports the {@code mark()} and {@code
182 * Resets this reader's position to the last {@code mark()} location.
189 * @see #mark(int)
216 * @see #mark(int)
H A DBufferedInputStream.java57 * The current limit, which when passed, invalidates the current mark.
62 * The currently marked position. -1 indicates no mark has been set or the
63 * mark has been invalidated.
172 /* Set the new position and mark position */
181 * Sets a mark position in this stream. The parameter {@code readlimit}
182 * indicates how many bytes can be read before a mark is invalidated.
189 * the number of bytes that can be read before the mark is
194 public synchronized void mark(int readlimit) { method in class:BufferedInputStream
200 * Indicates whether {@code BufferedInputStream} supports the {@code mark()}
204 * @see #mark(in
[all...]
H A DCharArrayReader.java39 * The current mark position.
128 * Sets a mark position in this reader. The parameter {@code readLimit} is
130 * reader back to the marked position provided the mark has not been
139 public void mark(int readLimit) throws IOException { method in class:CharArrayReader
153 * Indicates whether this reader supports the {@code mark()} and
157 * @see #mark(int)
233 * Resets this reader's position to the last {@code mark()} location.
H A DLineNumberReader.java74 * Sets a mark position in this reader. The parameter {@code readlimit}
75 * indicates how many characters can be read before the mark is invalidated.
83 * before the mark is invalidated.
85 * if an error occurs while setting the mark in this reader.
90 public void mark(int readlimit) throws IOException { method in class:LineNumberReader
92 super.mark(readlimit);
204 * if this reader is already closed, no mark has been set or the
205 * mark is no longer valid because more than {@code readlimit}
206 * bytes have been read since setting the mark.
207 * @see #mark(in
[all...]
H A DPushbackInputStream.java109 * Indicates whether this stream supports the {@code mark(int)} and
114 * @see #mark(int)
311 * Marks the current position in this stream. Setting a mark is not
316 * the mark is invalidated; this parameter is ignored.
318 @Override public void mark(int readlimit) { method in class:PushbackInputStream
H A DPushbackReader.java92 * Marks the current position in this stream. Setting a mark is not
98 * before the mark is invalidated; this parameter is ignored.
103 public void mark(int readAheadLimit) throws IOException { method in class:PushbackReader
104 throw new IOException("mark/reset not supported");
108 * Indicates whether this reader supports the {@code mark(int)} and
113 * @see #mark(int)
238 throw new IOException("mark/reset not supported");
H A DBufferedReader.java49 * mark pos end</pre>
55 * value is in the range {@code [0...pos]}. If the mark is {@code -1}, the
58 * <p>MarkLimit limits the distance between the mark and the pos. When this
69 private int mark = -1; field in class:BufferedReader
83 * We also need to keep the 'lastWasCR' state for the mark position, in case
143 if (mark == -1 || (pos - mark >= markLimit)) {
144 /* mark isn't set or has exceeded its limit. use the whole buffer */
147 mark = -1;
154 if (mark
206 public void mark(int markLimit) throws IOException { method in class:BufferedReader
[all...]
/libcore/luni/src/main/java/libcore/net/url/
H A DFtpURLInputStream.java56 public synchronized void mark(int limit) { method in class:FtpURLInputStream
57 is.mark(limit);
/libcore/support/src/test/java/tests/support/
H A DSupport_StringReader.java71 * back to the marked position provided the mark has not been invalidated.
77 * If an error occurs attempting mark this StringReader.
80 public void mark(int readLimit) throws IOException { method in class:Support_StringReader
96 * mark() and reset(). This method always returns true.
98 * @return <code>true</code> if mark() and reset() are supported,
196 * Reset this StringReader's position to the last <code>mark()</code>
/libcore/luni/src/main/java/java/util/zip/
H A DDeflaterInputStream.java187 * {@code mark}/{@code reset}.
198 public void mark(int limit) { method in class:DeflaterInputStream
H A DInflaterInputStream.java264 public void mark(int readlimit) { method in class:InflaterInputStream
277 * Returns whether the receiver implements {@code mark} semantics. This type
278 * does not support {@code mark()}, so always responds {@code false}.
/libcore/luni/src/test/java/libcore/java/io/
H A DOldByteArrayInputStreamTest.java59 assertEquals(444, SubByteArrayInputStream.mark);
66 public static int mark, pos, count; field in class:OldByteArrayInputStreamTest.SubByteArrayInputStream
72 mark = super.mark;
103 // Test for method void java.io.ByteArrayInputStream.mark(int)
108 is.mark(1000);
113 assertTrue("Failed to mark correct position", new String(buf1, 0,
117 fail("Exception during mark test");
143 is.mark(100);
184 is.mark(20
[all...]
H A DOldFilterReaderTest.java44 public void mark(int readLimit) throws IOException { method in class:OldFilterReaderTest.MockReader
98 fr.mark(0);
99 assertTrue("mark(int) has not been called.", called);
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DByteArrayInputStreamTest.java54 assertEquals(444, SubByteArrayInputStream.mark);
61 public static int mark, pos, count; field in class:ByteArrayInputStreamTest.SubByteArrayInputStream
67 mark = super.mark;
91 * ByteArrayInputStream#mark(int)
97 is.mark(1000);
102 assertTrue("Failed to mark correct position", new String(buf1, 0,
129 is.mark(100);
141 is.mark(200);
/libcore/luni/src/main/java/java/nio/
H A DBuffer.java37 * while changing the position, limit and mark of a read-only buffer is OK.</li>
49 * <code>UNSET_MARK</code> means the mark has not been set.
69 int mark = UNSET_MARK; field in class:Buffer
204 * and mark is cleared.
210 mark = UNSET_MARK;
219 * zero, and the mark is cleared.
228 mark = UNSET_MARK;
286 * been adjusted to be equivalent to <code>newLimit</code>. If the mark
305 if ((mark != UNSET_MARK) && (mark > newLimi
317 public final Buffer mark() { method in class:Buffer
[all...]
/libcore/luni/src/main/java/java/util/concurrent/atomic/
H A DAtomicMarkableReference.java11 * along with a mark bit, that can be updated atomically.
25 final boolean mark; field in class:AtomicMarkableReference.Pair
26 private Pair(T reference, boolean mark) { argument
28 this.mark = mark;
30 static <T> Pair<T> of(T reference, boolean mark) { argument
31 return new Pair<T>(reference, mark);
42 * @param initialMark the initial mark
58 * Returns the current value of the mark.
60 * @return the current value of the mark
[all...]
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DCertificateFactoryTest.java346 public void mark(int readlimit) { method in class:CertificateFactoryTest.MeasuredInputStream
348 mStream.mark(readlimit);

Completed in 520 milliseconds