Module org.cryptomator.cryptolib
Package org.cryptomator.cryptolib.common
Class EncryptingWritableByteChannel
- java.lang.Object
-
- org.cryptomator.cryptolib.common.EncryptingWritableByteChannel
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,WritableByteChannel
public class EncryptingWritableByteChannel extends Object implements WritableByteChannel
-
-
Constructor Summary
Constructors Constructor Description EncryptingWritableByteChannel(WritableByteChannel destination, Cryptor cryptor)
-
-
-
Constructor Detail
-
EncryptingWritableByteChannel
public EncryptingWritableByteChannel(WritableByteChannel destination, Cryptor cryptor)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-
write
public int write(ByteBuffer src) throws IOException
- Specified by:
writein interfaceWritableByteChannel- Throws:
IOException
-
-