| 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() |
SMB2FileId |
getFileId() |
FileAllInformation |
getFileInformation() |
<F extends FileQueryableInformation> |
getFileInformation(java.lang.Class<F> informationClass) |
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.Closeableclose in interface java.lang.AutoCloseablepublic SMB2FileId getFileId()
public FileAllInformation getFileInformation() throws SMBApiException
SMBApiExceptionpublic <F extends FileQueryableInformation> F getFileInformation(java.lang.Class<F> informationClass) throws SMBApiException
SMBApiExceptionpublic <F extends FileSettableInformation> void setFileInformation(F information)
public SecurityDescriptor getSecurityInformation(java.util.Set<SecurityInformation> securityInfo) throws SMBApiException
SMBApiExceptionpublic void setSecurityInformation(SecurityDescriptor securityDescriptor) throws SMBApiException
SMBApiExceptionpublic void setSecurityInformation(SecurityDescriptor securityDescriptor, java.util.Set<SecurityInformation> securityInfo) throws SMBApiException
SMBApiExceptionpublic void rename(java.lang.String newName)
throws SMBApiException
SMBApiExceptionpublic void rename(java.lang.String newName,
boolean replaceIfExist)
throws SMBApiException
SMBApiExceptionpublic void rename(java.lang.String newName,
boolean replaceIfExist,
long rootDirectory)
throws SMBApiException
SMBApiExceptionpublic void createHardlink(java.lang.String linkname)
throws SMBApiException
DiskEntry#createHardlink(linkname, false)linkname - the path to the hard link relative to shareSMBApiExceptionDiskEntry#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.SMBApiExceptionpublic 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 offsetnull 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 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 void flush()
public void deleteOnClose()
public void closeSilently()