java.lang.Object
java.io.OutputStream
io.ByteWriter
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ByteWriter extends OutputStream
-
Constructor Summary
Constructors Constructor Description ByteWriter(OutputStream out) -
Method Summary
Modifier and Type Method Description ByteWriterchangeEndiannes()voidclose()intgetPosition()voidwrite(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)voidwriteUnicodeString(String s)voidwriteUnicodeString(String s, boolean nullterm)Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
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
-