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 TypeMethodDescriptionvoid
close()
long
void
setPosition
(long pos) void
skipBytes
(int bytes) void
write
(byte... bytes) void
write
(byte[] bytes, int offset, int length) void
write
(int i) void
writeByte
(byte b) void
writeByte
(int b) void
writeByteNumTimes
(byte b, int num) void
writeByteNumTimes
(int b, int num) void
writeBytes
(int... bytes) static void
static void
static void
static void
void
writeInt
(int i) void
writeInts
(int... i) void
writeLong
(long i) void
writePadding
(int num) void
writeShort
(short s) void
writeShorts
(int... shorts) void
writeShorts
(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)
-