We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d91dca2 commit 29cc347Copy full SHA for 29cc347
client/src/main/java/org/asynchttpclient/request/body/multipart/part/PartVisitor.java
@@ -14,8 +14,6 @@
14
15
import io.netty.buffer.ByteBuf;
16
17
-import java.nio.ByteBuffer;
18
-
19
public interface PartVisitor {
20
21
void withBytes(byte[] bytes);
@@ -41,25 +39,6 @@ public int getCount() {
41
39
}
42
40
43
44
- class ByteBufferVisitor implements PartVisitor {
45
46
- private final ByteBuffer target;
47
48
- public ByteBufferVisitor(ByteBuffer target) {
49
- this.target = target;
50
- }
51
52
- @Override
53
- public void withBytes(byte[] bytes) {
54
- target.put(bytes);
55
56
57
58
- public void withByte(byte b) {
59
- target.put(b);
60
61
62
63
class ByteBufVisitor implements PartVisitor {
64
private final ByteBuf target;
65
0 commit comments