Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 98 for skips (4.02 sec)

  1. 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)
  2. 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)
  3. src/main/java/jcifs/smb1/util/transport/Transport.java

         *
         * @param response the response object to populate
         * @throws IOException if an I/O error occurs
         */
        protected abstract void doRecv(Response response) throws IOException;
    
        /**
         * Skips an unexpected or unrecognized message.
         *
         * @throws IOException if an I/O error occurs
         */
        protected abstract void doSkip() throws IOException;
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

                Arrays.fill(buffer, (byte) 0xFF);
    
                lock.encode(buffer, 0);
    
                // Reserved field bytes are not modified by the encode method
                // The implementation just skips these bytes without writing zeros
                assertEquals(-1, SMBUtil.readInt4(buffer, 20));
            }
        }
    
        @Nested
        @DisplayName("Flag Constants Tests")
        class FlagConstantsTests {
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/http/HandlerTest.java

        }
    
        @Test
        void testOpenConnection_WithSystemPropertyHandler_SkipsJcifsPackage() throws Exception {
            // This test verifies that the handler resolution mechanism correctly skips the 'jcifs'
            // package when it is listed in the 'java.protocol.handler.pkgs' system property.
            // We use mock handlers since actual system handlers might not be available in test environment.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java

                // When
                copy.encode(buffer, startIndex);
    
                // Then
                // The implementation skips 4 reserved bytes without writing zeros
                // This is consistent with the actual implementation behavior
                // The reserved bytes remain as they were in the buffer
                for (int i = 0; i < 4; i++) {
                    assertEquals((byte) 0xFF, buffer[startIndex + SOURCE_KEY_SIZE + 4 + i],
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/create/Smb2CloseRequestTest.java

            assertEquals(24, SMBUtil.readInt2(buffer, 0));
    
            // Flags (2 bytes) - should be 0 by default
            assertEquals(0, SMBUtil.readInt2(buffer, 2));
    
            // Reserved (4 bytes) - The implementation skips writing these bytes,
            // so they will have the initial pattern (0xCCCCCCCC)
            // This is expected behavior as seen in the implementation at line 131
            assertEquals((byte) 0xCC, buffer[4]);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  10. 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)
Back to top