public class Share
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected Session |
session |
protected SmbPath |
smbPath |
protected TreeConnect |
treeConnect |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected StatusHandler |
getCreateStatusHandler() |
SmbPath |
getSmbPath() |
TreeConnect |
getTreeConnect() |
byte[] |
ioctl(long ctlCode,
boolean isFsCtl,
byte[] inData)
Sends a control code directly to a specified device driver, causing the corresponding device to perform the
corresponding operation.
|
byte[] |
ioctl(long ctlCode,
boolean isFsCtl,
byte[] inData,
int inOffset,
int inLength)
Sends a control code directly to a specified device driver, causing the corresponding device to perform the
corresponding operation.
|
int |
ioctl(long ctlCode,
boolean isFsCtl,
byte[] inData,
int inOffset,
int inLength,
byte[] outData,
int outOffset,
int outLength)
Sends a control code directly to a specified device driver, causing the corresponding device to perform the
corresponding operation.
|
java.util.concurrent.Future<SMB2IoctlResponse> |
ioctlAsync(long ctlCode,
boolean isFsCtl,
ByteChunkProvider inputData) |
boolean |
isConnected() |
protected final SmbPath smbPath
protected final TreeConnect treeConnect
protected Session session
public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOExceptionpublic boolean isConnected()
public SmbPath getSmbPath()
public TreeConnect getTreeConnect()
protected StatusHandler getCreateStatusHandler()
public byte[] ioctl(long ctlCode,
boolean isFsCtl,
byte[] inData)
ctlCode - the control codeisFsCtl - true if the control code is an FSCTL; false if it is an IOCTLinData - the control code dependent input datanull if the control code did not produce a responsepublic byte[] ioctl(long ctlCode,
boolean isFsCtl,
byte[] inData,
int inOffset,
int inLength)
ctlCode - the control codeisFsCtl - true if the control code is an FSCTL; false if it is an IOCTLinData - the control code dependent input datainOffset - the offset in inData where the input data startsinLength - the number of bytes from inData to send, starting at offsetnull if the control code did not produce a responsepublic int ioctl(long ctlCode,
boolean isFsCtl,
byte[] inData,
int inOffset,
int inLength,
byte[] outData,
int outOffset,
int outLength)
ctlCode - the control codeisFsCtl - true if the control code is an FSCTL; false if it is an IOCTLinData - the control code dependent input datainOffset - the offset in inData where the input data startsinLength - the number of bytes from inData to send, starting at inOffsetoutData - the buffer where the response data should be writtenoutOffset - the offset in outData where the output data should be writtenoutLength - the maximum amount of data to write in outData, starting at outOffsetoutDatapublic java.util.concurrent.Future<SMB2IoctlResponse> ioctlAsync(long ctlCode, boolean isFsCtl, ByteChunkProvider inputData)