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