package jxl.write.biff;

import jxl.biff.IntegerHelper;
import jxl.biff.Type;
import jxl.biff.WritableRecordData;

class BookboolRecord extends WritableRecordData {
  private boolean externalLink;
  
  private byte[] data;
  
  public BookboolRecord(boolean extlink) {
    super(Type.BOOKBOOL);
    this.externalLink = extlink;
    this.data = new byte[2];
    if (!this.externalLink)
      IntegerHelper.getTwoBytes(1, this.data, 0); 
  }
  
  public byte[] getData() {
    return this.data;
  }
}
