- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 90 for skip1 (1.38 sec)
-
src/test/java/jcifs/smb/ShareEnumIteratorTest.java
void withFilter_acceptsSome_skipsOthers_andVerifiesInteractions() throws Exception { SmbFile parent = newParent(); List<FileEntry> entries = Arrays.asList(entry("keep1", SmbConstants.TYPE_SHARE), entry("skip1", SmbConstants.TYPE_SHARE), entry("keep2", SmbConstants.TYPE_SHARE)); // Filter accepts names starting with "keep" when(filter.accept(any())).thenAnswer(inv -> {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java
} /** * Skips over and discards {@code n} bytes of data from this input stream. * This method delegates to {@link FileInputStream#skip(long)}. * * @param n the number of bytes to be skipped * @return the actual number of bytes skipped * @throws IOException if an I/O error occurs. */ @Override public long skip(final long n) throws IOException {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 4.1K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStream.java
} /** * Skips over and discards n bytes of data from this input stream. * * @param n the number of bytes to be skipped * @return the actual number of bytes skipped * @throws IOException if an I/O error occurs */ @Override public long skip(final long n) throws IOException { return inputStream.skip(n); } /**Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java
} }); assertEquals("open fail", ex.getMessage()); verify(tree, times(1)).release(); // closed on constructor failure } @Test @DisplayName("Iteration skips '.' and '..' and returns valid entries") void iterationSkipsDotAndDotDot() throws Exception { // Arrange stubAcquireReturnsSelf(); FileEntry initial = entry("a");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.5K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacDataInputStream.java
final byte[] bytes = new byte[8 + sidSize * 4]; readFully(bytes); return new SID(bytes, 0); } /** * Skips the specified number of bytes in the stream. * @param n the number of bytes to skip * @return the actual number of bytes skipped * @throws IOException if an I/O error occurs */ public int skipBytes(final int n) throws IOException {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
SocketInputStream sis = new SocketInputStream(in); // Try to skip more than available // Skip uses read internally, which may throw IOException when it tries to read the next header try { long skipped = sis.skip(10); // If it doesn't throw, it should only skip what's available assertEquals(3, skipped); } catch (IOException e) {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/pac/PacLogonInfo.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java
byte[] nameBytes = originalFileName.getBytes(StandardCharsets.UTF_16LE); byte[] buffer = new byte[100]; buffer[0] = 1; // replaceIfExists = true // Skip 7 reserved bytes (1-7) // Skip 8 bytes for RootDirectory (8-15) SMBUtil.writeInt4(nameBytes.length, buffer, 16); System.arraycopy(nameBytes, 0, buffer, 20, nameBytes.length);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
} @Test @DisplayName("skip: positive advances; non-positive returns 0") void skipBehavior() throws Exception { SmbFileInputStream in = newStream(); assertEquals(0, in.skip(0)); assertEquals(0, in.skip(-1)); assertEquals(5, in.skip(5)); } } @Nested @DisplayName("SMB1 interactions")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java
bufferIndex += 4; this.leaseFlags = SMBUtil.readInt4(buffer, bufferIndex); bufferIndex += 4; // LeaseDuration (8 bytes) - reserved, skip bufferIndex += 8; byte[] parentKeyBytes = new byte[16]; System.arraycopy(buffer, bufferIndex, parentKeyBytes, 0, 16); this.parentLeaseKey = new Smb2LeaseKey(parentKeyBytes);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 02:21:31 UTC 2025 - 3.6K bytes - Viewed (0)