Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 746 for reset (0.02 sec)

  1. 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) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/audit/SecurityAuditLoggerTest.java

            assertTrue(statsBefore.get(EventType.FILE_ACCESS) > 0, "Should have file access events before reset");
    
            logger.resetStatistics();
    
            Map<EventType, Long> statsAfter = logger.getStatistics();
            // After reset, all counters should be 0
            for (Long count : statsAfter.values()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. guava/src/com/google/common/hash/HashingInputStream.java

      @Override
      public void mark(int readlimit) {}
    
      /**
       * reset() is not supported for HashingInputStream.
       *
       * @throws IOException this operation is not supported
       */
      @Override
      public void reset() throws IOException {
        throw new IOException("reset not supported");
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStream.java

        public synchronized void mark(final int readlimit) {
            inputStream.mark(readlimit);
        }
    
        /**
         * Tests if this input stream supports the mark and reset methods.
         *
         * @return true if this stream instance supports the mark and reset methods; false otherwise
         */
        @Override
        public boolean markSupported() {
            return inputStream.markSupported();
        }
    
        /**
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java

            assertEquals(0, netServerEnum2.setupCount);
            assertEquals(5000, netServerEnum2.timeout);
        }
    
        /**
         * Test the reset method.
         */
        @Test
        void testReset() {
            String lastName = "LAST_NAME";
            netServerEnum2.reset(0, lastName);
            assertEquals(lastName, netServerEnum2.lastName);
        }
    
        /**
         * Test the writeSetupWireFormat method.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/CommonServerMessageBlockResponseTest.java

            doNothing().when(response).setSessionId(999L);
            response.setSessionId(999L);
            verify(response).setSessionId(999L);
    
            // Test reset method
            doNothing().when(response).reset();
            response.reset();
            verify(response).reset();
        }
    
        @Test
        @DisplayName("Test concrete implementation with multiple scenarios")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.3K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  9. cmd/metacache-stream.go

    	if w == nil || w.closer == nil {
    		return nil
    	}
    	w.streamWg.Wait()
    	err := w.closer()
    	w.closer = nil
    	return err
    }
    
    // Reset and start writing to new writer.
    // Close must have been called before this.
    func (w *metacacheWriter) Reset(out io.Writer) {
    	w.streamErr = nil
    	w.creator = func() error {
    		s2w := s2.NewWriter(out, s2.WriterBlockSize(w.blockSize), s2.WriterConcurrency(2))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed May 07 15:37:12 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/ndr/NdrBufferTest.java

        }
    
        @Test
        void testReset() {
            ndrBuffer.advance(100);
            ndrBuffer.setLength(150);
            ndrBuffer.reset();
    
            // Verify reset state
            assertEquals(0, ndrBuffer.index);
            assertEquals(0, ndrBuffer.length);
            assertSame(ndrBuffer, ndrBuffer.deferred);
        }
    
        @Test
        void testGetAndSetIndex() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
Back to top