public static class HTTPServer.ResponseOutputStream extends FilterOutputStream
ResponseOutputStream encompasses a single response over a connection,
and does not close the underlying stream so that it can be used by subsequent responses.out| 构造器和说明 |
|---|
ResponseOutputStream(OutputStream out)
Constructs a ResponseOutputStream.
|
public ResponseOutputStream(OutputStream out)
out - the underlying output streampublic void close()
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 FilterOutputStreampublic void write(byte[] b,
int off,
int len)
throws IOException
write 在类中 FilterOutputStreamIOExceptionCopyright © 2021. All rights reserved.