public abstract class HTTPOutputStream extends OutputStream
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
clientMode |
protected boolean |
closed |
protected boolean |
committed |
protected MetaData |
info |
protected static org.slf4j.Logger |
log |
| 构造器和说明 |
|---|
HTTPOutputStream(MetaData info,
boolean clientMode) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
commit() |
boolean |
isClosed() |
boolean |
isCommitted() |
void |
write(byte[] array,
int offset,
int length) |
abstract void |
write(ByteBuffer data) |
void |
write(int b) |
void |
writeWithContentLength(ByteBuffer data) |
void |
writeWithContentLength(ByteBuffer[] data) |
void |
writeWithContentLength(Collection<ByteBuffer> data) |
close, flush, writeprotected static final org.slf4j.Logger log
protected final boolean clientMode
protected final MetaData info
protected boolean closed
protected boolean committed
public HTTPOutputStream(MetaData info, boolean clientMode)
public boolean isClosed()
public boolean isCommitted()
public void write(int b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void write(byte[] array,
int offset,
int length)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void writeWithContentLength(Collection<ByteBuffer> data) throws IOException
IOExceptionpublic void writeWithContentLength(ByteBuffer[] data) throws IOException
IOExceptionpublic void writeWithContentLength(ByteBuffer data) throws IOException
IOExceptionpublic abstract void commit()
throws IOException
IOExceptionpublic abstract void write(ByteBuffer data) throws IOException
IOExceptionCopyright © 2017. All rights reserved.