- All Superinterfaces:
AutoCloseable
Handle to an open file
- Author:
- mbechler
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidclose(long lastWriteTime) Closes this file handle and optionally sets the last write timelongReturns the initial size of the file when it was openedgetTree()Returns the tree handle associated with this file handlebooleanisValid()Checks if this file handle is still validvoidrelease()Releases this file handle without closing it
-
Method Details
-
getTree
SmbTreeHandle getTree()Returns the tree handle associated with this file handle- Returns:
- the tree
-
isValid
boolean isValid()Checks if this file handle is still valid- Returns:
- whether the file descriptor is valid
-
close
Closes this file handle and optionally sets the last write time- Parameters:
lastWriteTime- the last write time to set, or 0 to leave unchanged- Throws:
CIFSException- if an error occurs while closing the file
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
CIFSException- See Also:
-
release
Releases this file handle without closing it- Throws:
CIFSException- if an error occurs while releasing the handle
-
getInitialSize
long getInitialSize()Returns the initial size of the file when it was opened- Returns:
- the file size when it was opened
-