- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 17 for SmbFileInputStream (0.1 seconds)
-
src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java
* @throws UnknownHostException if the server cannot be resolved */ public SmbFileInputStream(final SmbFile file) throws SmbException, MalformedURLException, UnknownHostException { this(file, SmbFile.O_RDONLY); } SmbFileInputStream(final SmbFile file, final int openFlags) throws SmbException, MalformedURLException, UnknownHostException { this.file = file;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 9.4K bytes - Click Count (0) -
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;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/netbios/Lmhosts.java
import java.io.FileReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; import java.util.Hashtable; import jcifs.smb1.Config; import jcifs.smb1.smb1.SmbFileInputStream; import jcifs.smb1.util.LogStream; /** * Lmhosts file handling for NetBIOS name resolution. */ public class Lmhosts { /** * Default constructor for Lmhosts. */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6K bytes - Click Count (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 {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 12.8K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java
import jcifs.smb1.smb1.NtlmPasswordAuthentication; import jcifs.smb1.smb1.SmbFileInputStream; import jcifs.smb1.smb1.SmbFileOutputStream; import jcifs.smb1.smb1.SmbNamedPipe; import jcifs.smb1.util.Encdec; /** * DCERPC handle implementation using SMB named pipes for transport */ public class DcerpcPipeHandle extends DcerpcHandle { SmbNamedPipe pipe; SmbFileInputStream in = null; SmbFileOutputStream out = null;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.5K bytes - Click Count (0) -
src/main/java/jcifs/netbios/Lmhosts.java
import java.io.InputStreamReader; import java.io.Reader; import java.util.HashMap; import java.util.Map; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.CIFSContext; import jcifs.smb.SmbFileInputStream; /** * LMHOSTS file parser and NetBIOS name resolver. * This class provides functionality for resolving NetBIOS names using LMHOSTS files. */ public class Lmhosts { /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 6.3K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/TransactNamedPipeInputStream.java
package jcifs.smb1.smb1; import java.io.IOException; import java.net.MalformedURLException; import java.net.UnknownHostException; import jcifs.smb1.util.LogStream; class TransactNamedPipeInputStream extends SmbFileInputStream { private static final int INIT_PIPE_SIZE = 4096; private byte[] pipe_buf = new byte[INIT_PIPE_SIZE]; private int beg_idx, nxt_idx, used; private final boolean dcePipe; Object lock;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 4.6K bytes - Click Count (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('.');
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 22.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbPipeInputStream.java
* * This class provides a stream-based interface for reading * data from SMB named pipes over the network. * * @author mbechler */ public class SmbPipeInputStream extends SmbFileInputStream { private final SmbPipeHandleImpl handle; /** * @param handle * @param th * @throws SmbException */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.8K bytes - Click Count (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 contentCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.2K bytes - Click Count (0)