public static final class FileReadHandler.FilePacketReaderFactory extends Object implements AbstractReadHandler.PacketReader.Factory<BlockReadRequest,FileReadHandler.FilePacketReader>
FileReadHandler.FilePacketReader
s.Constructor and Description |
---|
FilePacketReaderFactory(DoraWorker doraWorker,
FileTransferType transferType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
FileReadHandler.FilePacketReader |
create(BlockReadRequest readRequest)
Creates a new packet reader.
|
public FilePacketReaderFactory(DoraWorker doraWorker, FileTransferType transferType)
doraWorker
- dora workertransferType
- transfer typepublic FileReadHandler.FilePacketReader create(BlockReadRequest readRequest) throws IOException
AbstractReadHandler.PacketReader.Factory
create
in interface AbstractReadHandler.PacketReader.Factory<BlockReadRequest,FileReadHandler.FilePacketReader>
readRequest
- the read requestIOException
- if IOException occursCopyright © 2023. All Rights Reserved.