Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 177 for getPipe (0.07 sec)

  1. src/main/java/jcifs/CIFSContext.java

         * @param pipeType
         *            the type of the pipe
         * @return the SMB pipe resource at the specified location
         * @throws CIFSException if the pipe resource cannot be accessed
         */
        SmbPipeResource getPipe(String url, int pipeType) throws CIFSException;
    
        /**
         * Close all connections and release resources associated with this context
         *
         * @return whether any connection was still in use
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/context/AbstractCIFSContextTest.java

            }
    
            @Override
            public Configuration getConfig() {
                return null; // Not relevant for AbstractCIFSContext tests
            }
    
            @Override
            public SmbPipeResource getPipe(String name, int flags) {
                return null; // Not relevant for AbstractCIFSContext tests
            }
    
            @Override
            public SmbResource get(String key) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

         */
        public byte[] getFileId() {
            return Arrays.copyOf(fileId, 16);
        }
    
        /**
         * Get the handle type
         * @return the handle type
         */
        public HandleType getType() {
            return type;
        }
    
        /**
         * Get the timeout
         * @return the timeout in milliseconds
         */
        public long getTimeout() {
            return timeout;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/SmbBasicFileInfoTest.java

            Mockito.when(mock.getLastAccessTime()).thenReturn(17L);
            Mockito.when(mock.getSize()).thenReturn(19L);
    
            // Act: invoke each method once
            int attributes = mock.getAttributes();
            long c = mock.getCreateTime();
            long w = mock.getLastWriteTime();
            long a = mock.getLastAccessTime();
            long s = mock.getSize();
    
            // Assert: values and interactions
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

        void testGetTypeWithDifferentShareTypes(int inputType, int expectedType) {
            SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, inputType, TEST_REMARK);
            assertEquals(expectedType, info.getType());
        }
    
        @Test
        @DisplayName("Test getType with hidden flag")
        void testGetTypeWithHiddenFlag() {
            // Hidden flag (0x80000000) should be masked out
            int hiddenPrinterType = 0x80000001; // Hidden printer
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            secondInstance.decode(encodedBuffer, 0, encodedBuffer.length);
    
            // Verify both instances have same values
            assertEquals(firstInstance.getSize(), secondInstance.getSize());
            assertEquals(expectedEndOfFile, secondInstance.getSize());
        }
    
        @Test
        @DisplayName("Test toString method")
        void testToString() throws SMBProtocolDecodingException {
            // Setup test data
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java

            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(calendar.getTime()), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testToCalendar_MediumStyle() throws Exception {
            final Calendar calendar = toCalendar("2010/9/7");
            assertThat(new SimpleDateFormat("yyyy/MM/dd").format(calendar.getTime()), is("2010/09/07"));
        }
    
        /**
         * @throws Exception
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/av/AvPairs.java

         */
        public static boolean contains(final List<AvPair> pairs, final int type) {
            if (pairs == null) {
                return false;
            }
            for (final AvPair p : pairs) {
                if (p.getType() == type) {
                    return true;
                }
            }
            return false;
        }
    
        /**
         * Gets the first AV pair of the specified type from the list
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/curl/io/ContentOutputStreamTest.java

        }
    
        @Test
        public void testMultipleGetFile() throws IOException {
            // Calling getFile() multiple times should return the same file
            ContentOutputStream cos = new ContentOutputStream(5, Curl.tmpDir);
            cos.write(new byte[] { 0, 1, 2, 3, 4, 5 });
            File file1 = cos.getFile();
            File file2 = cos.getFile();
            assertEquals(file1.getAbsolutePath(), file2.getAbsolutePath());
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Wed Nov 12 14:01:04 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/curl/io/ContentOutputStream.java

         */
        public ContentOutputStream(final int threshold, final File tmpDir) {
            super(threshold, PREFIX, SUFFIX, tmpDir);
        }
    
        @Override
        public File getFile() {
            done = true;
            return super.getFile();
        }
    
        /**
         * Closes the stream and deletes the temporary file if it was not retrieved.
         * If an error occurs during file deletion, it is logged but not thrown to avoid
    Registered: Sat Dec 20 09:13:53 UTC 2025
    - Last Modified: Thu Nov 20 13:34:13 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top