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 OutputStream
IOException
public final void write(byte[] bytes) throws IOException
write
in class OutputStream
IOException
public final void write(byte[] bytes, int offset, int length) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public int getByteCount()
public final void write4Bytes(int value) throws IOException
IOException
public final void write3Bytes(int value) throws IOException
IOException
public final void write2Bytes(int value) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.