public class BinaryOutputStream extends OutputStream
| Constructor and Description |
|---|
BinaryOutputStream(OutputStream os) |
BinaryOutputStream(OutputStream os,
ByteOrder byteOrder) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
int |
getByteCount() |
ByteOrder |
getByteOrder() |
protected void |
setByteOrder(ByteOrder byteOrder) |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int offset,
int length) |
void |
write(int i) |
void |
write2Bytes(int value) |
void |
write3Bytes(int value) |
void |
write4Bytes(int value) |
public BinaryOutputStream(OutputStream os, ByteOrder byteOrder)
public BinaryOutputStream(OutputStream os)
protected void setByteOrder(ByteOrder byteOrder)
public ByteOrder getByteOrder()
public void write(int i)
throws IOException
write in class OutputStreamIOExceptionpublic final void write(byte[] bytes)
throws IOException
write in class OutputStreamIOExceptionpublic final void write(byte[] bytes,
int offset,
int length)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic int getByteCount()
public final void write4Bytes(int value)
throws IOException
IOExceptionpublic final void write3Bytes(int value)
throws IOException
IOExceptionpublic final void write2Bytes(int value)
throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.