- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 14 for SmbShareInfo (0.07 seconds)
-
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 */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.5K bytes - Click Count (0) -
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) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3K bytes - Click Count (0) -
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();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java
SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, TEST_TYPE, TEST_REMARK); assertEquals(0L, info.length()); } @Test @DisplayName("Test equals method with same netName") void testEqualsWithSameNetName() { SmbShareInfo info1 = new SmbShareInfo("Share1", 0, "Remark1"); SmbShareInfo info2 = new SmbShareInfo("Share1", 1, "Remark2");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) -
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; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4K bytes - Click Count (0) -
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; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 2.2K bytes - Click Count (0) -
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);
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) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
// Verify results assertTrue(bytesRead > 0); FileEntry[] results = getResults(response); assertNotNull(results); assertEquals(1, results.length); SmbShareInfo share = (SmbShareInfo) results[0]; assertEquals(shareName, share.netName); assertEquals(shareType, share.type); assertEquals(remark, share.remark); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.2K bytes - Click Count (0) -
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];Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.4K bytes - Click Count (0)