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

12

/libcore/ojluni/src/main/java/java/io/
H A DFilterInputStream.java190 * allow that many bytes to be read before the mark position gets
193 * This method simply performs <code>in.mark(readlimit)</code>.
196 * the mark position becomes invalid.
200 public synchronized void mark(int readlimit) { method in class:FilterInputStream
201 in.mark(readlimit);
206 * <code>mark</code> method was last called on this input stream.
221 * mark has been invalidated.
223 * @see java.io.FilterInputStream#mark(int)
230 * Tests if this input stream supports the <code>mark</code>
236 * <code>mark</cod
[all...]
H A DFilterReader.java96 * Tells whether this stream supports the mark() operation.
107 public void mark(int readAheadLimit) throws IOException { method in class:FilterReader
108 in.mark(readAheadLimit);
H A DInputStream.java281 * allow that many bytes to be read before the mark position gets
284 * <p> The general contract of <code>mark</code> is that, if the method
286 * remembers all the bytes read after the call to <code>mark</code> and
294 * <p> The <code>mark</code> method of <code>InputStream</code> does
298 * the mark position becomes invalid.
301 public synchronized void mark(int readlimit) {} method in class:InputStream
305 * <code>mark</code> method was last called on this input stream.
313 * <ul><li> If the method <code>mark</code> has not been called since
315 * since <code>mark</code> was last called is larger than the argument
316 * to <code>mark</cod
[all...]
H A DByteArrayInputStream.java69 * position within the buffer by the <code>mark()</code> method.
73 * If no mark has been set, then the value of mark is the offset
78 protected int mark = 0; field in class:ByteArrayInputStream
116 * The buffer array is not copied. The buffer's mark is
127 this.mark = offset;
236 * Tests if this <code>InputStream</code> supports mark/reset. The
252 * If no mark has been set, then the value of the mark is the
261 public void mark(in method in class:ByteArrayInputStream
[all...]
H A DLineNumberInputStream.java249 * The {@code mark} method of
251 * number in a private variable, and then calls the {@code mark}
255 * the mark position becomes invalid.
259 public void mark(int readlimit) { method in class:LineNumberInputStream
262 in.mark(readlimit);
267 * {@code mark} method was last called on this input stream.
271 * the line number at the time the {@code mark} method was
286 * @see java.io.LineNumberInputStream#mark(int)
H A DReader.java208 * Tells whether this stream supports the mark() operation. The default
212 * @return true if and only if this stream supports the mark operation.
221 * character-input streams support the mark() operation.
224 * read while still preserving the mark. After
228 * @exception IOException If the stream does not support mark(),
231 public void mark(int readAheadLimit) throws IOException { method in class:Reader
232 throw new IOException("mark() not supported");
237 * reposition it at the mark. If the stream has not been marked, then
241 * reset() without supporting mark().
244 * or if the mark ha
[all...]
H A DStringReader.java41 private int mark = 0; field in class:StringReader
150 * Tells whether this stream supports the mark() operation, which it does.
161 * read while still preserving the mark. Because
169 public void mark(int readAheadLimit) throws IOException { method in class:StringReader
175 mark = next;
180 * Resets the stream to the most recent mark, or to the beginning of the
188 next = mark;
195 * ready(), mark(), or reset() invocations will throw an IOException.
H A DCharArrayReader.java42 /** The position of mark in buffer. */
189 * Tells whether this stream supports the mark() operation, which it does.
200 * read while still preserving the mark. Because
207 public void mark(int readAheadLimit) throws IOException { method in class:CharArrayReader
215 * Resets the stream to the most recent mark, or to the beginning if it has
230 * mark(), reset(), or skip() invocations will throw an IOException.
H A DLineNumberReader.java55 /** The line number of the mark, if any */
61 /** The skipLF flag when the mark was set */
254 * preserving the mark. After reading this many characters,
260 public void mark(int readAheadLimit) throws IOException { method in class:LineNumberReader
262 super.mark(readAheadLimit);
269 * Reset the stream to the most recent mark.
272 * If the stream has not been marked, or if the mark has been
H A DPushbackInputStream.java326 * Tests if this input stream supports the <code>mark</code> and
330 * <code>mark</code> and <code>reset</code> methods.
331 * @see java.io.InputStream#mark(int)
341 * <p> The <code>mark</code> method of <code>PushbackInputStream</code>
345 * the mark position becomes invalid.
348 public synchronized void mark(int readlimit) { method in class:PushbackInputStream
353 * <code>mark</code> method was last called on this input stream.
360 * @see java.io.InputStream#mark(int)
364 throw new IOException("mark/reset not supported");
H A DPushbackReader.java212 * Marks the present position in the stream. The <code>mark</code>
215 * @exception IOException Always, since mark is not supported
217 public void mark(int readAheadLimit) throws IOException { method in class:PushbackReader
218 throw new IOException("mark/reset not supported");
228 throw new IOException("mark/reset not supported");
232 * Tells whether this stream supports the mark() operation, which it does
/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/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...]
/libcore/ojluni/src/main/java/java/nio/
H A DByteBufferAsDoubleBuffer.java38 int mark, int pos, int lim, int cap,
40 super(mark, pos, lim, cap);
37 ByteBufferAsDoubleBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument
H A DByteBufferAsFloatBuffer.java37 int mark, int pos, int lim, int cap,
39 super(mark, pos, lim, cap);
36 ByteBufferAsFloatBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument
H A DByteBufferAsIntBuffer.java37 int mark, int pos, int lim, int cap,
39 super(mark, pos, lim, cap);
36 ByteBufferAsIntBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument
H A DByteBufferAsLongBuffer.java37 int mark, int pos, int lim, int cap,
39 super(mark, pos, lim, cap);
36 ByteBufferAsLongBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument
H A DByteBufferAsShortBuffer.java37 int mark, int pos, int lim, int cap,
39 super(mark, pos, lim, cap);
36 ByteBufferAsShortBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument
H A DHeapDoubleBuffer.java53 int mark, int pos, int lim, int cap,
55 this(buf, mark, pos, lim, cap, off, false);
69 int mark, int pos, int lim, int cap,
71 super(mark, pos, lim, cap, buf, off);
52 HeapDoubleBuffer(double[] buf, int mark, int pos, int lim, int cap, int off) argument
68 HeapDoubleBuffer(double[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
H A DHeapFloatBuffer.java63 int mark, int pos, int lim, int cap,
65 this(buf, mark, pos, lim, cap, off, false);
69 int mark, int pos, int lim, int cap,
71 super(mark, pos, lim, cap, buf, off);
62 HeapFloatBuffer(float[] buf, int mark, int pos, int lim, int cap, int off) argument
68 HeapFloatBuffer(float[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
H A DHeapIntBuffer.java63 int mark, int pos, int lim, int cap,
65 this(buf, mark, pos, lim, cap, off, false);
69 int mark, int pos, int lim, int cap,
71 super(mark, pos, lim, cap, buf, off);
62 HeapIntBuffer(int[] buf, int mark, int pos, int lim, int cap, int off) argument
68 HeapIntBuffer(int[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
H A DHeapLongBuffer.java64 int mark, int pos, int lim, int cap,
66 this(buf, mark, pos, lim, cap, off, false);
70 int mark, int pos, int lim, int cap,
72 super(mark, pos, lim, cap, buf, off);
63 HeapLongBuffer(long[] buf, int mark, int pos, int lim, int cap, int off) argument
69 HeapLongBuffer(long[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
H A DHeapShortBuffer.java63 int mark, int pos, int lim, int cap,
65 this(buf, mark, pos, lim, cap, off, false);
69 int mark, int pos, int lim, int cap,
71 super(mark, pos, lim, cap, buf, off);
62 HeapShortBuffer(short[] buf, int mark, int pos, int lim, int cap, int off) argument
68 HeapShortBuffer(short[] buf, int mark, int pos, int lim, int cap, int off, boolean isReadOnly) argument
H A DMappedByteBuffer.java81 MappedByteBuffer(int mark, int pos, int lim, int cap, // package-private argument
83 super(mark, pos, lim, cap);
87 MappedByteBuffer(int mark, int pos, int lim, int cap, byte[] buf, int offset) { argument
88 super(mark, pos, lim, cap, buf, offset);
92 MappedByteBuffer(int mark, int pos, int lim, int cap) { // package-private argument
93 super(mark, pos, lim, cap);
H A DStringCharBuffer.java53 int mark,
58 super(mark, pos, limit, cap, null, offset);
52 StringCharBuffer(CharSequence s, int mark, int pos, int limit, int cap, int offset) argument

Completed in 7188 milliseconds

12