Modifier and Type | Field and Description |
---|---|
protected SMB2FileId |
fileId |
protected java.lang.String |
fileName |
protected org.slf4j.Logger |
logger |
protected DiskShare |
share |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closeSilently() |
void |
createHardlink(java.lang.String linkname)
Creates hard link for receiver.
This method is a shortcut for DiskEntry#createHardlink(linkname, false) |
void |
createHardlink(java.lang.String linkname,
boolean replaceIfExist)
Creates hard link for receiver.
|
void |
deleteOnClose() |
void |
flush() |
DiskShare |
getDiskShare() |
SMB2FileId |
getFileId() |
FileAllInformation |
getFileInformation() |
<F extends FileQueryableInformation> |
getFileInformation(java.lang.Class<F> informationClass) |
java.lang.String |
getFileName() |
SecurityDescriptor |
getSecurityInformation(java.util.Set<SecurityInformation> securityInfo) |
byte[] |
ioctl(int 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(int 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.
|
void |
rename(java.lang.String newName) |
void |
rename(java.lang.String newName,
boolean replaceIfExist) |
void |
rename(java.lang.String newName,
boolean replaceIfExist,
long rootDirectory) |
<F extends FileSettableInformation> |
setFileInformation(F information) |
void |
setSecurityInformation(SecurityDescriptor securityDescriptor) |
void |
setSecurityInformation(SecurityDescriptor securityDescriptor,
java.util.Set<SecurityInformation> securityInfo) |
protected final org.slf4j.Logger logger
protected DiskShare share
protected SMB2FileId fileId
protected java.lang.String fileName
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public SMB2FileId getFileId()
public java.lang.String getFileName()
public DiskShare getDiskShare()
public FileAllInformation getFileInformation() throws SMBApiException
SMBApiException
public <F extends FileQueryableInformation> F getFileInformation(java.lang.Class<F> informationClass) throws SMBApiException
SMBApiException
public <F extends FileSettableInformation> void setFileInformation(F information)
public SecurityDescriptor getSecurityInformation(java.util.Set<SecurityInformation> securityInfo) throws SMBApiException
SMBApiException
public void setSecurityInformation(SecurityDescriptor securityDescriptor) throws SMBApiException
SMBApiException
public void setSecurityInformation(SecurityDescriptor securityDescriptor, java.util.Set<SecurityInformation> securityInfo) throws SMBApiException
SMBApiException
public void rename(java.lang.String newName) throws SMBApiException
SMBApiException
public void rename(java.lang.String newName, boolean replaceIfExist) throws SMBApiException
SMBApiException
public void rename(java.lang.String newName, boolean replaceIfExist, long rootDirectory) throws SMBApiException
SMBApiException
public void createHardlink(java.lang.String linkname) throws SMBApiException
DiskEntry#createHardlink(linkname, false)
linkname
- the path to the hard link relative to shareSMBApiException
DiskEntry#createHardlink(String, boolean)}
public void createHardlink(java.lang.String linkname, boolean replaceIfExist) throws SMBApiException
linkname
- the path to the hard link relative to sharereplaceIfExist
- if true replaces existing entry.SMBApiException
public byte[] ioctl(int 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 offset
null
if the control code did not produce a responsepublic int ioctl(int 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 inOffset
outData
- 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 outOffset
outData
public void flush()
public void deleteOnClose()
public void closeSilently()