public static class OutputStreamStay.Wrap extends OutputStream implements OutputStreamStay
OutputStreamStay.Wrap| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
m_Buffer |
protected int |
m_Count |
protected OutputStream |
m_Out |
| 构造器和说明 |
|---|
Wrap(OutputStream out) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
flush() |
protected void |
flushBuffer() |
void |
stay()
启动暂留
|
static OutputStream |
wrap(OutputStream out)
封装为支持在缓冲暂留
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
writeprotected OutputStream m_Out
protected byte[] m_Buffer
protected int m_Count
public Wrap(OutputStream out)
public static OutputStream wrap(OutputStream out)
out - 输出流protected void flushBuffer()
throws IOException
IOExceptionpublic void stay()
throws StayException
OutputStreamStaystay 在接口中 OutputStreamStayStayException - 状态异常时抛出public void write(int b)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write 在类中 OutputStreamIOExceptionpublic void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 OutputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 OutputStreamIOExceptionCopyright © 2021. All rights reserved.