- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for TYPE_PRINTER (0.08 sec)
-
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"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
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");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5K bytes - Viewed (0) -
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();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.1K bytes - Viewed (0) -
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() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/net/SmbShareInfo.java
public int getType() { /* * 0x80000000 means hidden but SmbFile.isHidden() checks for $ at end */ switch (this.type & 0xFFFF) { case 1: return SmbConstants.TYPE_PRINTER; case 3: return SmbConstants.TYPE_NAMED_PIPE; } return SmbConstants.TYPE_SHARE; } @Override public int getAttributes() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 3.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeImplTest.java
assertEquals(SmbConstants.TYPE_SHARE, tree1.getTreeType()); SmbTreeImpl tree2 = new SmbTreeImpl(session, "LPT1", "LPT1:"); assertEquals(SmbConstants.TYPE_PRINTER, tree2.getTreeType()); SmbTreeImpl tree3 = new SmbTreeImpl(session, "COMM", "COMM"); assertEquals(SmbConstants.TYPE_COMM, tree3.getTreeType()); } // Test case for DFS related methods
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.8K bytes - Viewed (0) -
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; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.4K bytes - Viewed (0)