Package com.sshtools.common.sftp
Interface OpenFile
- All Known Implementing Classes:
PseduoRandomOpenFile,RandomAccessOpenFile
public interface OpenFile
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()default Optional<com.sshtools.common.util.UnsignedInteger32>getFile()longcom.sshtools.common.util.UnsignedInteger32getFlags()byte[]default booleanisLocked()booleandefault voidlock(long offset, long length, int lockFlags) default intvoidprocessEvent(Event evt) intread(byte[] buf, int start, int numBytesToRead) voidseek(long longValue) default voidunlock(long offset, long length) voidwrite(byte[] data, int off, int len)
-
Method Details
-
getFile
AbstractFile getFile() -
getAccessFlags
-
getFlags
com.sshtools.common.util.UnsignedInteger32 getFlags() -
isTextMode
boolean isTextMode() -
getFilePointer
- Throws:
IOException
-
seek
- Throws:
IOException
-
read
- Throws:
IOExceptionPermissionDeniedException
-
write
- Throws:
IOExceptionPermissionDeniedException
-
close
- Throws:
IOException
-
processEvent
-
getHandle
byte[] getHandle() -
lock
- Throws:
IOException
-
unlock
- Throws:
IOException
-
lockFlags
default int lockFlags() -
isLocked
default boolean isLocked()
-