Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for getInfo (0.2 sec)

  1. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

        }
    
        @Test
        void testGetInfo() {
            // Test getInfo method when info is null
            response = new Trans2QueryFSInformationResponse(config, FileSystemInformation.SMB_INFO_ALLOCATION);
    
            assertNull(response.getInfo());
        }
    
        @Test
        void testGetInfoWithClass_Compatible() throws CIFSException {
            // Test getInfo with compatible class
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java

         */
        @SuppressWarnings("unchecked")
        public <T extends Decodable> T getInfo(final Class<T> clazz) throws CIFSException {
            if (!clazz.isAssignableFrom(this.info.getClass())) {
                throw new CIFSException("Incompatible file information class");
            }
            return (T) getInfo();
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java

         */
        @SuppressWarnings("unchecked")
        public <T extends FileSystemInformation> T getInfo(final Class<T> clazz) throws CIFSException {
            if (!clazz.isAssignableFrom(this.info.getClass())) {
                throw new CIFSException("Incompatible file information class");
            }
            return (T) getInfo();
        }
    
        @Override
        protected int writeSetupWireFormat(final byte[] dst, final int dstIndex) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/info/Smb2QueryInfoResponseTest.java

            // Should return at least to the end of the data
            assertTrue(result >= 158); // (50 + 300 + 8) - 200
            assertNotNull(response.getInfo());
            assertTrue(response.getInfo() instanceof FileInternalInfo);
        }
    
        @Test
        @DisplayName("Test multiple calls to getInfo return same instance")
        void testMultipleGetInfoCalls() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponseTest.java

        }
    
        @Test
        @DisplayName("Test getInfo when info is null")
        void testGetInfoWhenNull() {
            response = new Trans2QueryPathInformationResponse(mockConfig, FileInformation.FILE_BASIC_INFO);
    
            assertNull(response.getInfo());
        }
    
        @Test
        @DisplayName("Test getInfo with type when info is null")
        void testGetInfoWithTypeWhenNull() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationResponse.java

        }
    
        /**
         * Gets the file information from the response.
         *
         * @return the info
         */
        public final FileInformation getInfo() {
            return this.info;
        }
    
        /**
         * Gets the file information from the response cast to the specified type.
         *
         * @param <T> the type of file information to return
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/Crypto.java

            if (provider != null) {
                throw new CIFSUnsupportedCryptoException(
                        "Provider can't be re-initialized. Provider has already been initialized with " + provider.getInfo());
            }
            provider = customProvider;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFile.java

                return resp.getInfo(clazz);
            }
            final Trans2QueryFSInformationResponse response = new Trans2QueryFSInformationResponse(th.getConfig(), level);
            th.send(new Trans2QueryFSInformation(th.getConfig(), level), response);
            return response.getInfo(clazz);
        }
    
        @Override
        public void mkdir() throws SmbException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    	return s, nil
    }
    
    // getDiskInfo returns given disk information.
    func getDiskInfo(drivePath string) (di disk.Info, rootDrive bool, err error) {
    	if err = checkPathLength(drivePath); err == nil {
    		di, err = disk.GetInfo(drivePath, false)
    
    		if !globalIsCICD && !globalIsErasureSD {
    			if globalRootDiskThreshold > 0 {
    				// Use MINIO_ROOTDISK_THRESHOLD_SIZE to figure out if
    				// this disk is a root disk. treat those disks with
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Jun 13 11:33:47 UTC 2025
    - 91.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/entity/GeoInfo.java

     * into OpenSearch geo-distance queries for location-based search functionality.
     *
     */
    public class GeoInfo {
    
        /** The OpenSearch query builder for geographic queries. */
        private QueryBuilder builder;
    
        /**
         * Constructs a GeoInfo instance by parsing geographic parameters from the HTTP request.
         * Extracts geo.{field}.point and geo.{field}.distance parameters to create
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.7K bytes
    - Viewed (0)
Back to top