java.lang.Object
java.io.OutputStream
io.ByteWriter
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
void
write
(byte[] b, int off, int len) void
write
(int b) void
write
(long b) void
write2bytes
(long n) void
write3bytes
(long n) void
write4bytes
(long n) void
write5bytes
(long n) void
write6bytes
(long n) void
write7bytes
(long n) void
write8bytes
(long n) void
writeBytes
(byte[] b) void
void
writeUnicodeString
(String s, boolean nullterm) Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Field Details
-
le
private boolean le -
stream
-
pos
private int pos
-
-
Constructor Details
-
ByteWriter
-
-
Method Details
-
getPosition
public int getPosition() -
changeEndiannes
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Throws:
IOException
-
write2bytes
- Throws:
IOException
-
write3bytes
- Throws:
IOException
-
write4bytes
- Throws:
IOException
-
write5bytes
- Throws:
IOException
-
write6bytes
- Throws:
IOException
-
write7bytes
- Throws:
IOException
-
write8bytes
- Throws:
IOException
-
writeBytes
- Throws:
IOException
-
writeUnicodeString
- Throws:
IOException
-
writeUnicodeString
- Throws:
IOException
-