rfbis.readFully(buf);
//
- // Save decoded data to RecordInterface
+ // Save decoded data to data output stream
//
- if (rec.canWrite()) {
- rec.writeIntBE(nSubrects);
- rec.write(bg_buf);
- rec.write(buf);
+ if (dos != null) {
+ dos.writeInt(nSubrects);
+ dos.write(bg_buf);
+ dos.write(buf);
}
int sx, sy, sw, sh;
int subencoding = rfbis.readU8();
//
- // Save decoded data to RecordInterface
+ // Save decoded data to data output stream
//
- if (rec.canWrite()) {
- rec.writeByte((byte)subencoding);
+ if (dos != null) {
+ dos.writeByte((byte)subencoding);
}
// Is it a raw-encoded sub-rectangle?
}
//
- // Save decoded data to RecordInterface
+ // Save decoded data to data output stream
//
- if (rec.canWrite()) {
- rec.write(cbuf);
+ if (dos != null) {
+ dos.write(cbuf);
}
}
graphics.setColor(hextile_bg);
}
//
- // Save decoded data to RecordInterface
+ // Save decoded data to data output stream
//
- if (rec.canWrite()) {
- rec.write(cbuf);
+ if (dos != null) {
+ dos.write(cbuf);
}
}
rfbis.readFully(buf);
//
- // Save decoded data to RecordInterface
+ // Save decoded data to data output stream
//
- if (rec.canWrite()) {
- rec.writeByte((byte)nSubrects);
- rec.write(buf);
+ if (dos != null) {
+ dos.writeByte((byte)nSubrects);
+ dos.write(buf);
}
int b1, b2, sx, sy, sw, sh;
DataInputStream ds = new DataInputStream(new ByteArrayInputStream(buf));
//
- // Save decoded data to RecordInterface
+ // Save decoded data to data output stream
//
- if (rec.canWrite()) {
- rec.writeIntBE(nSubrects);
- rec.write(bg_buf);
- rec.write(buf);
+ if (dos != null) {
+ dos.writeInt(nSubrects);
+ dos.write(bg_buf);
+ dos.write(buf);
}
int sx, sy, sw, sh;