Search Options

Results per page
Sort
Preferred Languages
Advance

Results 351 - 360 of 701 for Present (0.11 sec)

  1. guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        assertTrue(reader.markSupported());
    
        assertEquals(string, readFully(reader));
        assertFullyRead(reader);
    
        // reset and read again
        reader.reset();
        assertEquals(string, readFully(reader));
        assertFullyRead(reader);
    
        // reset, skip, mark, then read the rest
        reader.reset();
        assertEquals(5, reader.skip(5));
        reader.mark(Integer.MAX_VALUE);
        assertEquals(string.substring(5), readFully(reader));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java

         * This method delegates to {@link FileInputStream#reset()}.
         *
         * @throws IOException if an I/O error occurs.
         */
        @Override
        public synchronized void reset() throws IOException {
            fileInputStream.reset();
        }
    
        /**
         * Skips over and discards {@code n} bytes of data from this input stream.
    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/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            }
        }
    
        @Test
        @DisplayName("Test reset method")
        void testReset() {
            // Given
            doNothing().when(messageBlock).reset();
    
            // When
            messageBlock.reset();
    
            // Then
            verify(messageBlock).reset();
        }
    
        @Test
        @DisplayName("Test multiple operations in sequence")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TemporaryFileInputStreamTest.java

                assertEquals('D', stream.read());
    
                // Reset will throw IOException because mark is not supported
                try {
                    stream.reset();
                    fail("reset() should throw IOException when mark is not supported");
                } catch (IOException e) {
                    // Expected - FileInputStream does not support mark/reset
                }
            }
        }
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/io/FileUtil.java

    /**
     * Utility class for handling {@link File}.
     * <p>
     * <strong>SECURITY NOTE:</strong> When accepting file paths from untrusted sources,
     * always validate them using {@link #isPathSafe(Path, Path)} to prevent path traversal attacks.
     * Methods that accept path strings do not perform automatic validation to maintain backward compatibility.
     * </p>
     *
     * @author higa
     */
    public abstract class FileUtil {
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

          }
        }
        out.close();
    
        // Check that source returns the right data
        assertThat(source.read()).isEqualTo(data);
    
        // Make sure that reset deleted the file
        out.reset();
        if (file != null) {
          assertFalse(file.exists());
        }
      }
    
    
      public void testThreshold_resetOnFinalize() throws Exception {
        testThreshold(0, 100, true, true);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 30 16:30:29 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/io/InputStreamUtil.java

        /**
         * Resets the {@link InputStream}.
         *
         * @param is the input stream (must not be {@literal null})
         * @see InputStream#reset()
         */
        public static void reset(final InputStream is) {
            assertArgumentNotNull("is", is);
    
            try {
                is.reset();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/CrudMode.java

         */
        public static final int DELETE = 3;
    
        /**
         * Mode for viewing record details.
         */
        public static final int DETAILS = 4;
    
        /**
         * Protected constructor to prevent instantiation.
         */
        protected CrudMode() {
            // nothing
        }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/PreauthIntegrityTest.java

        }
    
        /**
         * Test that pre-auth hash is reset on error
         */
        @Test
        @DisplayName("Pre-auth integrity hash should reset on error")
        void testPreauthHashResetOnError() throws Exception {
            // Setup invalid SMB2 state to trigger error
            setPrivateField(transport, "smb2", false);
    
            // Try to update preauth hash - should fail and reset
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/util/HMACT64Test.java

        }
    
        @Test
        void testResetAndReuse() {
            // Test that HMACT64 can be reset and reused
            HMACT64 hmac = new HMACT64(TEST_KEY);
    
            // First use
            hmac.engineUpdate(TEST_DATA, 0, TEST_DATA.length);
            byte[] result1 = hmac.engineDigest();
    
            // Reset and reuse with same data
            hmac.engineReset();
            hmac.engineUpdate(TEST_DATA, 0, TEST_DATA.length);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
Back to top