Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for reached (1.46 sec)

  1. src/test/java/jcifs/smb/SmbEndOfFileExceptionTest.java

                throw new SmbEndOfFileException();
            });
            assertEquals("Unexpectedly reached end of file", thrown.getMessage());
        }
    
        /**
         * toString should include both the class name and the default message.
         */
        @ParameterizedTest
        @ValueSource(strings = { "SmbEndOfFileException", "Unexpectedly reached end of file" })
        void toStringContainsKeyInfo(String expectedSubstring) {
            // Arrange
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbEndOfFileException.java

         *
         */
        private static final long serialVersionUID = 298752101881244000L;
    
        /**
         * Constructs an end-of-file exception.
         */
        public SmbEndOfFileException() {
            super("Unexpectedly reached end of file");
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

            fp = 0L;
        }
    
        /**
         * Reads a single byte from the file at the current file pointer position.
         *
         * @return the byte read as an integer (0-255), or -1 if end of file is reached
         * @throws SmbException if an I/O error occurs
         */
        public int read() throws SmbException {
            if (read(tmp, 0, 1) == -1) {
                return -1;
            }
            return tmp[0] & 0xFF;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

        void testSessionLimitPreventsReuse() throws Exception {
            // Given: Config with session limit of 1
            when(config.getSessionLimit()).thenReturn(1);
    
            // Create first connection
            SmbTransportImpl first = pool.getSmbTransport(ctx, address, 445, false);
    
            // Mock that session limit is reached
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/collection/LruHashSet.java

    import java.util.Iterator;
    import java.util.Set;
    
    /**
     * A {@link Set} implementation that stores its elements in a {@link LruHashMap}.
     * <p>
     * This set has a fixed maximum capacity. When the capacity is reached and a new element is added,
     * the least recently used element is removed.
     * </p>
     * @author shinsuke
     * @param <E> the type of elements maintained by this set
     */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/BufferCache.java

            if (buf == null || buf.length != SmbComTransaction.TRANSACTION_BUF_SIZE) {
                return; // Silently ignore invalid buffers
            }
    
            // Only cache if we haven't reached the limit - O(1) check
            if (queueSize.get() < MAX_BUFFERS) {
                if (bufferQueue.offer(buf)) { // O(1) operation
                    queueSize.incrementAndGet();
                }
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/suggest/converter/ReadingConverterChain.java

     * It maintains a list of ReadingConverter instances and iterates through them, applying each converter to the input text and accumulating the results.
     * The chain stops processing when the maximum number of readings is reached.
     */
    public class ReadingConverterChain implements ReadingConverter {
        /**
         * Constructs a new {@link ReadingConverterChain}.
         */
        public ReadingConverterChain() {
            // nothing
        }
    
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 17 14:28:21 UTC 2025
    - 3.3K bytes
    - Viewed (1)
  8. src/main/java/org/codelibs/core/io/ReaderUtil.java

         *
         * @param reader
         *            the {@link BufferedReader} (must not be {@literal null})
         * @return a line of text, or {@literal null} if the end of the stream has been reached
         * @see BufferedReader#readLine()
         */
        public static String readLine(final BufferedReader reader) {
            assertArgumentNotNull("reader", reader);
    
            try {
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lease/LeaseManagerTest.java

            if (cleaned == 2) {
                assertNull(entry1);
                assertNull(leaseManager.getLease(key2));
            }
        }
    
        @Test
        @DisplayName("Should evict oldest leases when max limit reached")
        void testMaxLeaseEviction() throws InterruptedException {
            // Create a context with low max lease limit
            Configuration limitedConfig = mock(Configuration.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbFileFilterTest.java

            SmbFileFilter filter = f -> {
                if (f == null) {
                    throw new NullPointerException("file must not be null");
                }
                return true; // not reached in this test
            };
    
            // Act + Assert
            NullPointerException npe = assertThrows(NullPointerException.class, () -> filter.accept(null));
            assertEquals("file must not be null", npe.getMessage());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top