File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
client/src/main/java/org/asynchttpclient Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public long transfered() {
54
54
55
55
@ Override
56
56
public long transferTo (WritableByteChannel target , long position ) throws IOException {
57
- long written = body .transferTo (position , target );
57
+ long written = body .transferTo (target );
58
58
if (written > 0 ) {
59
59
transfered += written ;
60
60
}
Original file line number Diff line number Diff line change @@ -24,13 +24,11 @@ public interface RandomAccessBody extends Body {
24
24
/**
25
25
* Transfers the specified chunk of bytes from this body to the specified channel.
26
26
*
27
- * @param position
28
- * The zero-based byte index from which to start the transfer, must not be negative.
29
27
* @param target
30
28
* The destination channel to transfer the body chunk to, must not be {@code null}.
31
29
* @return The non-negative number of bytes actually transferred.
32
30
* @throws IOException
33
31
* If the body chunk could not be transferred.
34
32
*/
35
- long transferTo (long position , WritableByteChannel target ) throws IOException ;
33
+ long transferTo (WritableByteChannel target ) throws IOException ;
36
34
}
Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ public BodyState transferTo(ByteBuffer target) throws IOException {
102
102
}
103
103
104
104
// RandomAccessBody API, suited for HTTP but not for HTTPS (zero-copy)
105
- public long transferTo (long position , WritableByteChannel target ) throws IOException {
105
+ @ Override
106
+ public long transferTo (WritableByteChannel target ) throws IOException {
106
107
107
108
if (done )
108
109
return -1L ;
You can’t perform that action at this time.
0 commit comments