feature/cleanup #2
1 changed files with 3 additions and 6 deletions
|
@ -6,15 +6,12 @@ import lombok.NonNull;
|
||||||
|
|
||||||
import java.io.ByteArrayOutputStream;
|
import java.io.ByteArrayOutputStream;
|
||||||
|
|
||||||
import static ch.fritteli.labyrinth.generator.serialization.SerializerDeserializer.MAGIC_BYTE_1;
|
|
||||||
import static ch.fritteli.labyrinth.generator.serialization.SerializerDeserializer.MAGIC_BYTE_2;
|
|
||||||
import static ch.fritteli.labyrinth.generator.serialization.SerializerDeserializer.VERSION_BYTE;
|
|
||||||
|
|
||||||
public class LabyrinthOutputStream extends ByteArrayOutputStream {
|
public class LabyrinthOutputStream extends ByteArrayOutputStream {
|
||||||
public void writeHeader() {
|
public void writeHeader() {
|
||||||
this.writeByte(MAGIC_BYTE_1);
|
this.writeByte(SerializerDeserializer.MAGIC_BYTE_1);
|
||||||
this.writeByte(MAGIC_BYTE_2);
|
this.writeByte(SerializerDeserializer.MAGIC_BYTE_2);
|
||||||
this.writeByte(VERSION_BYTE);
|
this.writeByte(SerializerDeserializer.VERSION_BYTE);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writeByte(final byte value) {
|
public void writeByte(final byte value) {
|
||||||
|
|
Loading…
Reference in a new issue