- Sort Score
- Result 10 results
- Languages All
Results 11 - 14 of 14 for markSupported (0.1 sec)
-
guava/src/com/google/common/io/CharSequenceReader.java
return charsToSkip; } @Override public synchronized boolean ready() throws IOException { checkOpen(); return true; } @Override public boolean markSupported() { return true; } @Override public synchronized void mark(int readAheadLimit) throws IOException { checkArgument(readAheadLimit >= 0, "readAheadLimit (%s) may not be negative", readAheadLimit);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CharSequenceReaderTest.java
} public void testMarkAndReset() throws IOException { String string = "abcdefghijklmnopqrstuvwxyz"; CharSequenceReader reader = new CharSequenceReader(string); assertTrue(reader.markSupported()); assertEquals(string, readFully(reader)); assertFullyRead(reader); // reset and read again reader.reset(); assertEquals(string, readFully(reader)); assertFullyRead(reader);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 6.5K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
if (result != -1) { left -= result; } return result; } @Override public synchronized void reset() throws IOException { if (!in.markSupported()) { throw new IOException("Mark not supported"); } if (mark == -1) { throw new IOException("Mark not set"); } in.reset(); left = mark; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:26:48 UTC 2024 - 29.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
server.enqueue(builder.build()) server.enqueue(builder.build()) val inputStream = getResponse(newRequest("/")).body.byteStream() assertThat(inputStream.markSupported(), "This implementation claims to support mark().") .isFalse() inputStream.mark(5) assertThat(readAscii(inputStream, 5)).isEqualTo("ABCDE") assertFailsWith<IOException> {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0)