InternalByteArrayEntity.java (httpcomponents-client-4.5.6-src) | : | InternalByteArrayEntity.java (httpcomponents-client-4.5.7-src) | ||
---|---|---|---|---|
skipping to change at line 94 | skipping to change at line 94 | |||
public long getContentLength() { | public long getContentLength() { | |||
return this.len; | return this.len; | |||
} | } | |||
@Override | @Override | |||
public InputStream getContent() { | public InputStream getContent() { | |||
return new ByteArrayInputStream(this.b, this.off, this.len); | return new ByteArrayInputStream(this.b, this.off, this.len); | |||
} | } | |||
@Override | @Override | |||
public void writeTo(final OutputStream outstream) throws IOException { | public void writeTo(final OutputStream outStream) throws IOException { | |||
Args.notNull(outstream, "Output stream"); | Args.notNull(outStream, "Output stream"); | |||
outstream.write(this.b, this.off, this.len); | outStream.write(this.b, this.off, this.len); | |||
outstream.flush(); | outStream.flush(); | |||
} | } | |||
@Override | @Override | |||
public boolean isStreaming() { | public boolean isStreaming() { | |||
return false; | return false; | |||
} | } | |||
} | } | |||
End of changes. 1 change blocks. | ||||
4 lines changed or deleted | 4 lines changed or added |