Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for SmbShareInfo (0.04 sec)

  1. src/main/java/jcifs/internal/smb1/net/SmbShareInfo.java

        /**
         * Default constructor for SmbShareInfo.
         */
        public SmbShareInfo() {
        }
    
        /**
         * Constructs an SmbShareInfo with the specified properties.
         *
         * @param netName the network name of the share
         * @param type the type of the share
         * @param remark the optional comment or description for the share
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbShareInfo.java

         * Default constructor for SMB share information.
         */
        public SmbShareInfo() {
        }
    
        /**
         * Constructs SMB share information with specified properties.
         *
         * @param netName the network name of the share
         * @param type the type of the share
         * @param remark the descriptive comment about the share
         */
        public SmbShareInfo(final String netName, final int type, final String remark) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

        }
    
        /**
         * Test of equals method, of class SmbShareInfo.
         */
        @Test
        void testEquals() {
            SmbShareInfo instance1 = new SmbShareInfo("SHARE1", 0, "remark1");
            SmbShareInfo instance2 = new SmbShareInfo("SHARE1", 1, "remark2");
            SmbShareInfo instance3 = new SmbShareInfo("SHARE2", 0, "remark1");
            Object notAShareInfo = new Object();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/msrpc/MsrpcDfsRootEnum.java

         */
        public FileEntry[] getEntries() {
            final netdfs.DfsEnumArray200 a200 = (netdfs.DfsEnumArray200) this.info.e;
            final SmbShareInfo[] entries = new SmbShareInfo[a200.count];
            for (int i = 0; i < a200.count; i++) {
                entries[i] = new SmbShareInfo(a200.s[i].dfs_name, 0, null);
            }
            return entries;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/net/NetShareEnumResponse.java

            final int start = bufferIndex;
            SmbShareInfo e;
    
            setUseUnicode(false);
    
            final SmbShareInfo[] results = new SmbShareInfo[getNumEntries()];
            for (int i = 0; i < getNumEntries(); i++) {
                results[i] = e = new SmbShareInfo();
                e.netName = readString(buffer, bufferIndex, 13, false);
                bufferIndex += 14;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

            assertEquals(8, entry1.getType()); // TYPE_SHARE constant
    
            // Access remark through SmbShareInfo methods if available
            assertTrue(entry1 instanceof SmbShareInfo);
            SmbShareInfo shareInfo = (SmbShareInfo) entry1;
            Field remarkField = SmbShareInfo.class.getDeclaredField("remark");
            remarkField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/msrpc/MsrpcDfsRootEnum.java

         */
        public FileEntry[] getEntries() {
            final netdfs.DfsEnumArray200 a200 = (netdfs.DfsEnumArray200) info.e;
            final SmbShareInfo[] entries = new SmbShareInfo[a200.count];
            for (int i = 0; i < a200.count; i++) {
                entries[i] = new SmbShareInfo(a200.s[i].dfs_name, 0, null);
            }
            return entries;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            SmbShareInfo share1 = (SmbShareInfo) response.results[0];
            assertEquals("SHARE1", share1.getName().trim(), "Share 1 name should be correct.");
            assertEquals(0, share1.type, "Share 1 raw type should be 0.");
            assertEquals("Remark 1", share1.remark.trim(), "Share 1 remark should be correct.");
    
            SmbShareInfo share2 = (SmbShareInfo) response.results[1];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NetShareEnumResponse.java

        int readDataWireFormat(final byte[] buffer, int bufferIndex, final int len) {
            final int start = bufferIndex;
            SmbShareInfo e;
    
            useUnicode = false;
    
            results = new SmbShareInfo[numEntries];
            for (int i = 0; i < numEntries; i++) {
                results[i] = e = new SmbShareInfo();
                e.netName = readString(buffer, bufferIndex, 13, false);
                bufferIndex += 14;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/msrpc/MsrpcShareEnum.java

    package jcifs.dcerpc.msrpc;
    
    import jcifs.internal.smb1.net.SmbShareInfo;
    import jcifs.smb.FileEntry;
    
    /**
     * MSRPC implementation for enumerating shares.
     * This class provides functionality to enumerate shared resources
     * on a server using the Server Service RPC interface.
     */
    public class MsrpcShareEnum extends srvsvc.ShareEnumAll {
    
        class MsrpcShareInfo1 extends SmbShareInfo {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top