Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 13 for TYPE_PRINTER (0.09 seconds)

  1. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

            // Verify the second entry
            FileEntry entry2 = entries[1];
            assertNotNull(entry2);
            assertEquals("Share2", entry2.getName());
            assertEquals(32, entry2.getType()); // TYPE_PRINTER constant (0x20)
        }
    
        @Test
        void testGetEntriesWithNoShares() throws Exception {
            // Create empty ShareInfoCtr1
            srvsvc.ShareInfoCtr1 shareInfoCtr1 = new srvsvc.ShareInfoCtr1();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/SmbTreeHandleTest.java

            assertEquals(SmbConstants.TYPE_SHARE, smbTreeHandle.getTreeType(), "Tree type should be TYPE_SHARE");
            when(smbTreeHandle.getTreeType()).thenReturn(SmbConstants.TYPE_PRINTER);
            assertEquals(SmbConstants.TYPE_PRINTER, smbTreeHandle.getTreeType(), "Tree type should be TYPE_PRINTER");
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

        }
    
        /**
         * Test of getType method, of class SmbShareInfo.
         */
        @Test
        void testGetType() {
            // Test for TYPE_PRINTER
            SmbShareInfo printerShare = new SmbShareInfo("PRINTER", 1, "A printer");
            assertEquals(SmbFile.TYPE_PRINTER, printerShare.getType());
    
            // Test for TYPE_NAMED_PIPE
            SmbShareInfo pipeShare = new SmbShareInfo("PIPE", 3, "A named pipe");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/SmbResourceLocator.java

         *
         * @return <code>TYPE_FILESYSTEM, TYPE_WORKGROUP, TYPE_SERVER,
         * TYPE_NAMED_PIPE</code>, or <code>TYPE_SHARE</code> in which case it may be either <code>TYPE_SHARE</code>,
         *         <code>TYPE_PRINTER</code> or <code>TYPE_COMM</code>.
         * @throws CIFSException if the type cannot be determined
         */
        int getType() throws CIFSException;
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  5. src/main/java/jcifs/SmbConstants.java

         */
        int TYPE_NAMED_PIPE = 0x10;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a printer.
         */
        int TYPE_PRINTER = 0x20;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a communications device.
         */
        int TYPE_COMM = 0x40;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/smb1/SmbFile.java

         */
        public static final int TYPE_NAMED_PIPE = 0x10;
        /**
         * Returned by {@link #getType()} if the resource this {@code SmbFile}
         * represents is a printer.
         */
        public static final int TYPE_PRINTER = 0x20;
        /**
         * Returned by {@link #getType()} if the resource this {@code SmbFile}
         * represents is a communications device.
         */
        public static final int TYPE_COMM = 0x40;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

            assertEquals(0, info.getFileIndex());
        }
    
        @ParameterizedTest
        @DisplayName("Test getType with different share types")
        @CsvSource({ "1, " + SmbConstants.TYPE_PRINTER, // Printer share
                "3, " + SmbConstants.TYPE_NAMED_PIPE, // Named pipe
                "0, " + SmbConstants.TYPE_SHARE, // Standard share
                "2, " + SmbConstants.TYPE_SHARE, // Unknown type defaults to share
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  8. src/main/java/jcifs/SmbResource.java

         */
        String getName();
    
        /**
         * Returns type of of object this <code>SmbResource</code> represents.
         *
         * @return <code>TYPE_FILESYSTEM, TYPE_WORKGROUP, TYPE_SERVER, TYPE_SHARE,
         * TYPE_PRINTER, TYPE_NAMED_PIPE</code>, or <code>TYPE_COMM</code>.
         * @throws CIFSException if an error occurs accessing the resource
         */
        int getType() throws CIFSException;
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 28K bytes
    - Click Count (1)
  9. src/test/java/jcifs/SmbConstantsTest.java

            assertEquals(0x04, SmbConstants.TYPE_SERVER);
            assertEquals(0x08, SmbConstants.TYPE_SHARE);
            assertEquals(0x10, SmbConstants.TYPE_NAMED_PIPE);
            assertEquals(0x20, SmbConstants.TYPE_PRINTER);
            assertEquals(0x40, SmbConstants.TYPE_COMM);
        }
    
        @Test
        @DisplayName("Should define open flags constants")
        void testOpenFlagsConstants() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/smb1/SmbShareInfo.java

        @Override
        public int getType() {
            /* 0x80000000 means hidden but SmbFile.isHidden() checks for $ at end
             */
            switch (type & 0xFFFF) {
            case 1:
                return SmbFile.TYPE_PRINTER;
            case 3:
                return SmbFile.TYPE_NAMED_PIPE;
            }
            return SmbFile.TYPE_SHARE;
        }
    
        @Override
        public int getAttributes() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3K bytes
    - Click Count (0)
Back to Top