public class DataReaderChannel extends Object implements ReadableByteChannel
Note that this class is not a part of the public API and is a subject to change.
Constructor and Description |
---|
DataReaderChannel(DataDescriptor dataDescriptor,
long chunkSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
init() |
boolean |
isOpen() |
void |
onPieceVerified(int pieceIndex) |
int |
read(ByteBuffer dst) |
public DataReaderChannel(DataDescriptor dataDescriptor, long chunkSize)
public void init()
public void onPieceVerified(int pieceIndex)
public int read(ByteBuffer dst)
read
in interface ReadableByteChannel
Copyright © 2016–2021. All rights reserved.