Package com.sshtools.common.sftp.files
Class RandomAccessOpenFile
java.lang.Object
com.sshtools.common.sftp.files.RandomAccessOpenFile
- All Implemented Interfaces:
OpenFile
-
Constructor Summary
ConstructorsConstructorDescriptionRandomAccessOpenFile(AbstractFile f, com.sshtools.common.util.UnsignedInteger32 flags, byte[] handle) -
Method Summary
-
Constructor Details
-
RandomAccessOpenFile
public RandomAccessOpenFile(AbstractFile f, com.sshtools.common.util.UnsignedInteger32 flags, byte[] handle) throws IOException, PermissionDeniedException - Throws:
IOExceptionPermissionDeniedException
-
-
Method Details
-
isTextMode
public boolean isTextMode()- Specified by:
isTextModein interfaceOpenFile
-
close
- Specified by:
closein interfaceOpenFile- Throws:
IOException
-
read
- Specified by:
readin interfaceOpenFile- Throws:
IOExceptionPermissionDeniedException
-
write
- Specified by:
writein interfaceOpenFile- Throws:
IOExceptionPermissionDeniedException
-
seek
- Specified by:
seekin interfaceOpenFile- Throws:
IOException
-
getFile
-
getFlags
public com.sshtools.common.util.UnsignedInteger32 getFlags() -
getFilePointer
- Specified by:
getFilePointerin interfaceOpenFile- Throws:
IOException
-
processEvent
- Specified by:
processEventin interfaceOpenFile
-
getHandle
public byte[] getHandle()
-