public class SMBClient
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT
The default TCP port for SMB
|
| Constructor and Description |
|---|
SMBClient() |
SMBClient(SmbConfig config) |
SMBClient(SmbConfig config,
SMBEventBus bus) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Connection |
connect(java.lang.String hostname)
Connect to the host at
|
Connection |
connect(java.lang.String hostname,
int port)
Connect to the host at
|
PathResolver |
getPathResolver() |
public static final int DEFAULT_PORT
public SMBClient()
public SMBClient(SmbConfig config)
public SMBClient(SmbConfig config, SMBEventBus bus)
public Connection connect(java.lang.String hostname) throws java.io.IOException
hostnameon the default port (445)
hostname - The hostname to connect to.java.io.IOException - If the connection could not be established.public Connection connect(java.lang.String hostname, int port) throws java.io.IOException
hostnameon the given port
hostname - The hostname to connect to.port - The port to connect tojava.io.IOException - If the connection could not be established.public PathResolver getPathResolver()
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable