Save This Page
Home » jexcelapi_2_6_8 » jxl.biff » [javadoc | source]
jxl.biff
public class: FormatRecord [javadoc | source]
java.lang.Object
   jxl.biff.RecordData
      jxl.biff.WritableRecordData
         jxl.biff.FormatRecord

All Implemented Interfaces:
    Format, DisplayFormat, ByteData

Direct Known Subclasses:
    DateFormat, DateFormatRecord, NumberFormat, NumberFormatRecord

A non-built in format record
Field Summary
public static  Logger logger    The logger 
public static final  FormatRecord.BiffType biff8     
public static final  FormatRecord.BiffType biff7     
Fields inherited from jxl.biff.WritableRecordData:
maxRecordLength
Constructor:
 protected FormatRecord() 
 protected FormatRecord(FormatRecord fr) 
    Copy constructor - can be invoked by public access
    Parameters:
    fr - the format to copy
 FormatRecord(String fmt,
    int refno) 
    Constructor invoked when copying sheets
    Parameters:
    fmt - the format string
    refno - the index code
 public FormatRecord(Record t,
    WorkbookSettings ws,
    FormatRecord.BiffType biffType) 
    Constructs this object from the raw data. Used when reading in a format record
    Parameters:
    t - the raw data
    ws - the workbook settings
    biffType - biff type dummy overload
Method from jxl.biff.FormatRecord Summary:
equals,   getData,   getDateFormat,   getFormatIndex,   getFormatString,   getIndexCode,   getNumberFormat,   hashCode,   initialize,   isBuiltIn,   isDate,   isInitialized,   isNumber,   replace,   setFormatString
Methods from jxl.biff.WritableRecordData:
getBytes,   getData
Methods from jxl.biff.RecordData:
getCode,   getRecord
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.biff.FormatRecord Detail:
 public boolean equals(Object o) 
    Standard equals method. This compares the contents of two format records, and not their indexCodes, which are ignored
 public byte[] getData() 
    Used to get the data when writing out the format record
 public final DateFormat getDateFormat() 
    Gets the java equivalent date format for the formatString
 public int getFormatIndex() 
    Gets the format index of this record
 public String getFormatString() 
    Gets the formatting string.
 public int getIndexCode() 
    Gets the index code, for use as a hash value
 public final NumberFormat getNumberFormat() 
    Gets the java equivalent number format for the formatString
 public int hashCode() 
    Standard hash code method
 public  void initialize(int pos) 
    Sets the index of this record. Called from the FormattingRecords object
 public boolean isBuiltIn() 
    Indicates whether this formula is a built in
 public final boolean isDate() 
    Sees if this format is a date format
 public boolean isInitialized() 
    Accessor to see whether this object is initialized or not.
 public final boolean isNumber() 
    Sees if this format is a number format
 protected final String replace(String input,
    String search,
    String replace) 
    Replaces all instances of search with replace in the input. Used for replacing microsoft number formatting characters with java equivalents
 protected final  void setFormatString(String s) 
    Called by the immediate subclass to set the string once the Java-Excel replacements have been done