java.lang.Object
java.io.OutputStream
io.ByteWriter
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()intvoidwrite(byte[] b, int off, int len) voidwrite(int b) voidwrite(long b) voidwrite2bytes(long n) voidwrite3bytes(long n) voidwrite4bytes(long n) voidwrite5bytes(long n) voidwrite6bytes(long n) voidwrite7bytes(long n) voidwrite8bytes(long n) voidwriteBytes(byte[] b) voidvoidwriteUnicodeString(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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Specified by:
writein 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
-