Package org.cryptomator.cryptofs.fh
Class ByteSource.UndefinedNoisePrefixedByteSource
- java.lang.Object
-
- org.cryptomator.cryptofs.fh.ByteSource.UndefinedNoisePrefixedByteSource
-
- All Implemented Interfaces:
ByteSource
- Enclosing interface:
- ByteSource
public static class ByteSource.UndefinedNoisePrefixedByteSource extends Object implements ByteSource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.cryptomator.cryptofs.fh.ByteSource
ByteSource.ByteBufferByteSource, ByteSource.UndefinedNoisePrefixedByteSource, ByteSource.UndefinedNoisePrefixedByteSourceWithoutBuffer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyTo(ByteBuffer target)Copies as many bytes as possible from thisByteSourceto the givenByteBuffer.booleanhasRemaining()longremaining()
-
-
-
Method Detail
-
hasRemaining
public boolean hasRemaining()
- Specified by:
hasRemainingin interfaceByteSource
-
remaining
public long remaining()
- Specified by:
remainingin interfaceByteSource
-
copyTo
public void copyTo(ByteBuffer target)
Description copied from interface:ByteSourceCopies as many bytes as possible from this
ByteSourceto the givenByteBuffer.That means after this operation either
Buffer.remaining()orByteSource.remaining()or both will return zero.- Specified by:
copyToin interfaceByteSource- Parameters:
target- the byte buffer to copy bytes to.
-
-