code: private void pushInput(byte[] inputBytes) throws Exception {
      buf.write(inputBytes);
      while (buf.size() >= 4) {
        byte[] bytes = buf.toByteArray();
        int size = 0;
        size = (size << 8) + byteToInt(bytes[0]);
        size = (size << 8) + byteToInt(bytes[1]);
        size = (size << 8) + byteToInt(bytes[2]);
        size = (size << 8) + byteToInt(bytes[3]);
        if (bytes.length >= 4 + size) {
          String
              message =
              new PlistManager().plistBinaryToXml(Arrays.copyOfRange(bytes, 4, size + 4));
          handler.handle(message);
          buf = new ByteArrayOutputStream();
          buf.write(bytes, 4 + size, bytes.length - size - 4);
        } else {
          break;
        }
      }
    }
docs: reads the messages from the AUT.