Class BinaryWriter
java.lang.Object
io.github.turtleisaac.nds4j.framework.BinaryWriter
-
Constructor Summary
ConstructorsConstructorDescriptionBinaryWriter(File file) BinaryWriter(String fileName) BinaryWriter(Path file) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longvoidsetPosition(long pos) voidskipBytes(int bytes) voidwrite(byte... bytes) voidwrite(byte[] bytes, int offset, int length) voidwrite(int i) voidwriteByte(byte b) voidwriteByte(int b) voidwriteByteNumTimes(byte b, int num) voidwriteByteNumTimes(int b, int num) voidwriteBytes(int... bytes) static voidstatic voidstatic voidstatic voidvoidwriteInt(int i) voidwriteInts(int... i) voidwriteLong(long i) voidwritePadding(int num) voidwriteShort(short s) voidwriteShorts(int... shorts) voidwriteShorts(short... shorts)
-
Constructor Details
-
BinaryWriter
- Throws:
IOException
-
BinaryWriter
- Throws:
IOException
-
BinaryWriter
- Throws:
IOException
-
-
Method Details
-
writeFile
- Throws:
IOException
-
writeFile
- Throws:
IOException
-
writeFile
- Throws:
IOException
-
writeFile
- Throws:
IOException
-
setPosition
- Throws:
IOException
-
getPosition
- Throws:
IOException
-
skipBytes
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeInts
- Throws:
IOException
-
writeLong
- Throws:
IOException
-
writeShort
- Throws:
IOException
-
writeByte
- Throws:
IOException
-
writeByte
- Throws:
IOException
-
writeBytes
- Throws:
IOException
-
writeShorts
- Throws:
IOException
-
writeShorts
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
writeByteNumTimes
- Throws:
IOException
-
writeByteNumTimes
- Throws:
IOException
-
writePadding
- Throws:
IOException
-
close
- Throws:
IOException
-
write
public void write(int i)
-