@InterfaceAudience.Private public class ByteBufferWriterOutputStream extends OutputStream implements ByteBufferWriter
| 构造器和说明 |
|---|
ByteBufferWriterOutputStream(OutputStream os) |
ByteBufferWriterOutputStream(OutputStream os,
int size) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close() |
void |
flush() |
void |
write(byte[] b,
int off,
int len) |
void |
write(ByteBuffer b,
int off,
int len)
Writes len bytes from the specified ByteBuffer starting at offset off to
this OutputStream.
|
void |
write(int b) |
void |
writeInt(int i)
Writes an
int to the underlying output stream as four bytes, high byte first. |
writepublic ByteBufferWriterOutputStream(OutputStream os)
public ByteBufferWriterOutputStream(OutputStream os, int size)
public void write(ByteBuffer b, int off, int len) throws IOException
write 在接口中 ByteBufferWriterb - the ByteBufferoff - the start offset in the datalen - the number of bytes to writeIOException - if an I/O error occurs. In particular, an IOException is thrown
if the output stream is closed.public void writeInt(int i)
throws IOException
ByteBufferWriterint to the underlying output stream as four bytes, high byte first.writeInt 在接口中 ByteBufferWriteri - the int to writeIOException - if an I/O error occurs.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 © 2007–2020 The Apache Software Foundation. All rights reserved.