Module org.cryptomator.cryptolib
Package org.cryptomator.cryptolib.common
Class EncryptingReadableByteChannel
java.lang.Object
org.cryptomator.cryptolib.common.EncryptingReadableByteChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
-
Constructor Summary
ConstructorsConstructorDescriptionEncryptingReadableByteChannel(ReadableByteChannel src, Cryptor cryptor) Creates an EncryptingReadableByteChannel that encrypts a whole cleartext file beginning at its first byte. -
Method Summary
-
Constructor Details
-
EncryptingReadableByteChannel
Creates an EncryptingReadableByteChannel that encrypts a whole cleartext file beginning at its first byte.- Parameters:
src- A cleartext channel positioned at its begincryptor- The cryptor to use
-
-
Method Details
-
isOpen
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
read
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-