- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for SmbFileInputStream (0.08 sec)
-
src/main/java/jcifs/smb/SmbFileInputStream.java
import jcifs.util.transport.TransportException; /** * This InputStream can read bytes from a file on an SMB file server. Offsets are 64 bits. */ public class SmbFileInputStream extends InputStream { private static final Logger log = LoggerFactory.getLogger(SmbFileInputStream.class); private SmbFileHandleImpl handle; private long fp; private int readSize, readSizeFile, openFlags, access, sharing;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileInputStreamTest.java
@Mock SmbFileHandleImpl mockHandle; @Mock Configuration mockConfig; private SmbFileInputStream newStream() throws SmbException { // Constructor that avoids external I/O; stays in-memory when(mockTree.isSMB2()).thenReturn(true); // default SMB2 for simple happy-path return new SmbFileInputStream(mockFile, mockTree, mockHandle); } @BeforeEach void setUp() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java
import org.codelibs.jcifs.smb.impl.NtlmPasswordAuthenticator; import org.codelibs.jcifs.smb.impl.SmbException; import org.codelibs.jcifs.smb.impl.SmbFile; import org.codelibs.jcifs.smb.impl.SmbFileInputStream; /** * The {@link SmbClient} class is a crawler client implementation for accessing files and directories * on SMB (Server Message Block) shares. It extends {@link AbstractCrawlerClient} and utilizes the JCIFS library
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Sep 18 09:30:45 UTC 2025 - 22.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/LmhostsTest.java
String content = "#INCLUDE \\\\server\\share\\lmhosts\n" + "192.168.1.100 MAINHOST\n"; // Mock SmbFileInputStream to simulate include file try (MockedConstruction<SmbFileInputStream> mockedConstruction = Mockito.mockConstruction(SmbFileInputStream.class, (mock, context) -> { // Mock the read method to return simple content
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbClient.java
import org.codelibs.jcifs.smb1.NtlmPasswordAuthentication; import org.codelibs.jcifs.smb1.SID; import org.codelibs.jcifs.smb1.SmbException; import org.codelibs.jcifs.smb1.SmbFile; import org.codelibs.jcifs.smb1.SmbFileInputStream; import org.codelibs.jcifs.smb1.util.LogStream; /** * The {@link SmbClient} class is a crawler client implementation for accessing files and directories
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Sep 18 09:30:45 UTC 2025 - 23K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NetworkExplorer.java
final byte[] buf = new byte[8192]; String url, type; int n; try (SmbFileInputStream in = new SmbFileInputStream(file); ServletOutputStream out = resp.getOutputStream()) { url = file.getPath(); resp.setContentType("text/plain"); n = url.lastIndexOf('.');
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.6K bytes - Viewed (0) -
src/main/java/jcifs/http/NetworkExplorer.java
final byte[] buf = new byte[8192]; @SuppressWarnings("resource") final ServletOutputStream out = resp.getOutputStream(); String url; int n; try (SmbFileInputStream in = new SmbFileInputStream(file)) { url = file.getLocator().getPath(); resp.setContentType("text/plain"); resp.setContentType(URLConnection.guessContentTypeFromName(url));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 23.4K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbCopyUtil.java
} } try (SmbFileHandleImpl sfd = src.openUnshared(0, SmbConstants.O_RDONLY, SmbConstants.FILE_SHARE_READ, SmbConstants.ATTR_NORMAL, 0); SmbFileInputStream fis = new SmbFileInputStream(src, sh, sfd)) { final int attrs = src.getAttributes(); try (SmbFileHandleImpl dfd = openCopyTargetFile(dest, attrs, false); SmbFileOutputStream fos =
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
@Mock Configuration config; private SmbPipeInputStream newStreamWithInit(boolean smb2) throws CIFSException { when(handle.getPipe()).thenReturn(pipe); // init(th) behavior inside SmbFileInputStream constructor when(tree.isSMB2()).thenReturn(smb2); when(tree.getReceiveBufferSize()).thenReturn(4096); when(tree.getMaximumBufferSize()).thenReturn(65535);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileTest.java
var inputStream = smbFile.getInputStream(); // Assert assertNotNull(inputStream); verify(smbFile).openUnshared(0, // SmbConstants.O_RDONLY = 0x01, but SmbFileInputStream uses 0 SmbFile.O_RDONLY, SmbConstants.DEFAULT_SHARING, // 7 = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE SmbConstants.ATTR_NORMAL, // 128 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.8K bytes - Viewed (0)