public class OutputStreamStreamOutput extends StreamOutput
| 构造器和说明 |
|---|
OutputStreamStreamOutput(OutputStream out) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Closes this stream to further operations.
|
void |
flush()
Forces any buffered output to be written.
|
void |
reset() |
void |
writeByte(byte b)
Writes a single byte.
|
void |
writeBytes(byte[] b,
int offset,
int length)
Writes an array of bytes.
|
write, write, writeBoolean, writeBytes, writeBytes, writeDouble, writeFloat, writeGenericValue, writeInt, writeLong, writeOptionalBoolean, writeOptionalDouble, writeOptionalFloat, writeOptionalInt, writeOptionalLong, writeOptionalVInt, writeOptionalVLong, writeShort, writeVInt, writeVLong, writeZLongwritepublic OutputStreamStreamOutput(OutputStream out)
public void close()
throws IOException
StreamOutputclose 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 StreamOutputIOExceptionpublic void flush()
throws IOException
StreamOutputflush 在接口中 Flushableflush 在类中 StreamOutputIOExceptionpublic void reset()
throws IOException
reset 在类中 StreamOutputIOExceptionpublic void writeByte(byte b)
throws IOException
StreamOutputwriteByte 在类中 StreamOutputIOExceptionpublic void writeBytes(byte[] b,
int offset,
int length)
throws IOException
StreamOutputwriteBytes 在类中 StreamOutputb - the bytes to writeoffset - the offset in the byte arraylength - the number of bytes to writeIOExceptionCopyright © 2021. All rights reserved.