Closeable
, Flushable
, AutoCloseable
public final class LittleEndianOutputStream extends FilterOutputStream
Modifier and Type | Field | Description |
---|---|---|
protected long |
written |
out
Constructor | Description |
---|---|
LittleEndianOutputStream(OutputStream out) |
Modifier and Type | Method | Description |
---|---|---|
long |
getWrittenCount() |
|
void |
setWrittenCount(long count) |
|
void |
write(byte[] data,
int offset,
int length) |
|
void |
write(int b) |
|
void |
writeBoolean(boolean b) |
|
void |
writeByte(int b) |
|
void |
writeBytes(String s) |
|
void |
writeChar(int c) |
|
void |
writeDouble(double d) |
|
void |
writeFloat(float f) |
|
void |
writeInt(int i) |
|
void |
writeLong(long l) |
|
void |
writeShort(int s) |
|
void |
writeString(String s) |
Srite a string as a null terminated byte array.
|
close, flush, write
public LittleEndianOutputStream(OutputStream out)
public void write(int b) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] data, int offset, int length) throws IOException
write
in class FilterOutputStream
IOException
public void writeBoolean(boolean b) throws IOException
IOException
public void writeByte(int b) throws IOException
IOException
public void writeShort(int s) throws IOException
IOException
public void writeChar(int c) throws IOException
IOException
public void writeInt(int i) throws IOException
IOException
public void writeLong(long l) throws IOException
IOException
public final void writeFloat(float f) throws IOException
IOException
public final void writeDouble(double d) throws IOException
IOException
public void writeBytes(String s) throws IOException
IOException
public void writeString(String s) throws IOException
s
- IOException
public long getWrittenCount()
public void setWrittenCount(long count)