- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for markSupported (0.1 sec)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java
* This method delegates to {@link FileInputStream#markSupported()}. * * @return {@code true} if this stream type supports the mark and reset method; {@code false} otherwise */ @Override public boolean markSupported() { return fileInputStream.markSupported(); } /**
Registered: 2025-05-25 03:50 - Last Modified: 2025-03-15 06:52 - 4.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStream.java
Registered: 2025-05-25 03:50 - Last Modified: 2025-03-15 06:52 - 2.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ZipExtractor.java
final StringBuilder buf = new StringBuilder(1000); try (final ArchiveInputStream ais = archiveStreamFactory.createArchiveInputStream(in.markSupported() ? in : new BufferedInputStream(in))) { ZipArchiveEntry entry = null; long contentSize = 0; while ((entry = (ZipArchiveEntry) ais.getNextEntry()) != null) {
Registered: 2025-05-25 03:50 - Last Modified: 2025-03-15 06:52 - 4.2K bytes - Viewed (0) -
guava/src/com/google/common/hash/HashingInputStream.java
} return numOfBytesRead; } /** * mark() is not supported for HashingInputStream * * @return {@code false} always */ @Override public boolean markSupported() { return false; } /** mark() is not supported for HashingInputStream */ @Override public void mark(int readlimit) {} /** * reset() is not supported for HashingInputStream. *
Registered: 2025-05-30 12:43 - Last Modified: 2024-12-21 03:10 - 2.9K bytes - Viewed (0) -
android/guava/src/com/google/common/io/MultiInputStream.java
} } @Override public int available() throws IOException { if (in == null) { return 0; } return in.available(); } @Override public boolean markSupported() { return false; } @Override public int read() throws IOException { while (in != null) { int result = in.read(); if (result != -1) { return result; }
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-14 19:40 - 2.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java
ByteSource source = newByteSource(0, 10); ByteSource joined = ByteSource.concat(source, source); assertEquals(20, joined.size()); InputStream in = joined.openStream(); assertFalse(in.markSupported()); assertEquals(10, in.available()); int total = 0; while (in.read() != -1) { total++; } assertEquals(0, in.available()); assertEquals(20, total); }
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 18:46 - 4.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/MultiInputStreamTest.java
ByteSource source = newByteSource(0, 10); ByteSource joined = ByteSource.concat(source, source); assertEquals(20, joined.size()); InputStream in = joined.openStream(); assertFalse(in.markSupported()); assertEquals(10, in.available()); int total = 0; while (in.read() != -1) { total++; } assertEquals(0, in.available()); assertEquals(20, total); }
Registered: 2025-05-30 12:43 - Last Modified: 2025-05-13 18:46 - 4.6K bytes - Viewed (0) -
android/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: 2025-05-30 12:43 - Last Modified: 2024-12-22 03:38 - 4.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImpl.java
return mediaType.getType() + "/" + mediaType.getSubtype(); } } final MediaType mediaType = mimeTypes.detect(is == null || is.markSupported() ? is : new BufferedInputStream(is), metadata); if (useFilenameOnOctetStream && MediaType.OCTET_STREAM.equals(mediaType)) { final MediaType mediaTypeFromFilename = mimeTypes.detect(null, metadata);
Registered: 2025-05-25 03:50 - Last Modified: 2025-03-15 06:52 - 5.9K 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: 2025-05-30 12:43 - Last Modified: 2024-12-19 18:03 - 6.6K bytes - Viewed (0)