马老师AI 人工智能工程师
Pipe pipe = Pipe.open();
new Thread(() -> {
try (OutputStream outputStream = Channels.newOutputStream(pipe.sink())) {
// Write the encoded data to the pipeline.
httpEntity.writeTo(outputStream);
} catch (IOException e) {
e.printStackTrace();
}