- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 330 for READ (0.97 sec)
-
src/test/java/jcifs/netbios/SessionServicePacketTest.java
} @Test @DisplayName("readn should handle multiple read calls") void testReadnMultipleCalls() throws IOException { when(mockInputStream.read(any(byte[].class), anyInt(), anyInt())).thenReturn(2) // First read returns 2 bytes .thenReturn(2) // Second read returns 2 bytes .thenReturn(1); // Third read returns 1 byte byte[] buffer = new byte[10];Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComReadAndX.java
/** * SMB1 Read AndX request message. * * This command is used to read data from a file that has been * previously opened with an Open command. */ public class SmbComReadAndX extends AndXServerMessageBlock { private long offset; private int fid; int openTimeout; int maxCount, minCount, remaining; /** * Constructs a Read AndX request. *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.4K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
// Read first message assertEquals(1, sis.read()); assertEquals(2, sis.read()); // Read second message assertEquals(3, sis.read()); assertEquals(4, sis.read()); assertEquals(5, sis.read()); // After all data is consumed, next read throws IOException assertThrows(IOException.class, () -> sis.read()); } @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStreamTest.java
// Read some data assertEquals('T', stream.read()); // Close should be ignored stream.close(); // Should still be able to read assertEquals('e', stream.read()); assertEquals('s', stream.read()); assertEquals('t', stream.read()); }Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 6.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java
type = TYPE_NAMED_PIPE; } /** * Return the <code>InputStream</code> used to read information * from this pipe instance. Presumably data would first be written * to the <code>OutputStream</code> associated with this Named * Pipe instance although this is not a requirement (e.g. a * read-only named pipe would write data to this stream onRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/util/transport/Transport.java
/** * Reads exactly len bytes from the input stream into the buffer. * * @param in the input stream to read from * @param b the buffer to read into * @param off the offset in the buffer to start writing * @param len the number of bytes to read * @return the number of bytes actually read * @throws IOException if an I/O error occurs */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 11.3K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TemporaryFileInputStreamTest.java
} // Read from TemporaryFileInputStream try (TemporaryFileInputStream stream = new TemporaryFileInputStream(tempFile)) { assertEquals('T', stream.read()); assertEquals('e', stream.read()); assertEquals('s', stream.read()); assertEquals('t', stream.read()); assertEquals(' ', stream.read()); assertEquals('d', stream.read());Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 7.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/mapping/CharMappingFile.java
* Parses mapping rules in the format: input1,input2,... => output * * @param updater the mapping updater to use for writing changes, or null for read-only reload * @param in the input stream to read the mapping data from */ protected void reload(final MappingUpdater updater, final InputStream in) { final Pattern parsePattern = Pattern.compile("(.*?)\\s*+=>\\s*+(.*?)\\s*+$");Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Sat Dec 20 05:56:45 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
// Read first 5 bytes byte[] buffer = new byte[5]; int bytesRead = stream.read(buffer); assertEquals(5, bytesRead); assertEquals("Hello", new String(buffer, 0, bytesRead, "UTF-8")); // Read remaining bytes byte[] remaining = new byte[20]; int remainingBytes = stream.read(remaining);Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 11.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java
} return dstIndex - start; } /** * Reads the AndX wire format from buffer * @param buffer the buffer to read from * @param bufferIndex the starting index * @return the number of bytes read * @throws SMBProtocolDecodingException if decoding fails */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0)