Class FillByteArrayByteConsumer
java.lang.Object
cool.scx.io.consumer.FillByteArrayByteConsumer
- All Implemented Interfaces:
ByteConsumer<RuntimeException>
public final class FillByteArrayByteConsumer
extends Object
implements ByteConsumer<RuntimeException>
FillByteArrayByteConsumer
- Version:
- 0.0.1
- Author:
- scx567888
-
Constructor Summary
ConstructorsConstructorDescriptionFillByteArrayByteConsumer(byte[] data) FillByteArrayByteConsumer(byte[] data, int position, int length) -
Method Summary
-
Constructor Details
-
FillByteArrayByteConsumer
public FillByteArrayByteConsumer(byte[] data) -
FillByteArrayByteConsumer
public FillByteArrayByteConsumer(byte[] data, int position, int length)
-
-
Method Details
-
accept
- Specified by:
acceptin interfaceByteConsumer<RuntimeException>- Returns:
- needMore 是否需要更多数据
- Throws:
IndexOutOfBoundsException
-
bytesFilled
public int bytesFilled()
-