public void encode(LEDataOutputStream byteStream, ImageData image) { this.outputStream = byteStream; this.image = image; initializeForEncoding(); encode();
void encode() { nextPutCode(clearCode); int lastPrefix = encodeLoop(); nextPutCode(lastPrefix); nextPutCode(endCode);   if (bitsLeft == 8) { block[0] = (byte)(blockIndex - 1); } else { block[0] = (byte)(blockIndex); } writeBlock();   if (block[0] != 0) { block[0] = 0; writeBlock(); }
public void encode(LEDataOutputStream byteStream, ImageData image) {	this.outputStream = byteStream;	this.image = image;	initializeForEncoding();	encode();}