@Override public void read(Stream inStream) { bitfield = new byte[inStream.available()]; for (int i = 0; i < bitfield.length; i++) { bitfield[i] = (byte) inStream.readByte(); } }
@Override public void write(Stream outStream) { for (int i = 0; i < bitfield.length; i++) { outStream.writeByte(bitfield[i]); } }