Save This Page
Home » cocoon-2.1.11-src » org.apache.cocoon.poi » hssf » record » [javadoc | source]
org.apache.cocoon.poi.hssf.record
public class: UnicodeString [javadoc | source]
java.lang.Object
   org.apache.cocoon.poi.hssf.record.Record
      org.apache.cocoon.poi.hssf.record.UnicodeString
Title: Unicode String

Description: Unicode String record. We implement these as a record, although they are really just standard fields that are in several records. It is considered more desirable then repeating it in all of them.

Copyright: Copyright (c) 2001 SuperLink Software, Inc REFERENCE: PG 264 Microsoft Excel 97 Developer's Kit (ISBN: 1-57231-498-2)

Field Summary
public static final  short sid     
Fields inherited from org.apache.cocoon.poi.hssf.record.Record:
sid
Constructor:
 public UnicodeString() 
 public UnicodeString(short id,
    short size,
    byte[] data) 
 public UnicodeString(short id,
    short size,
    byte[] data,
    String prefix) 
    construct a unicode string from a string fragment + data
Method from org.apache.cocoon.poi.hssf.record.UnicodeString Summary:
equals,   fillFields,   fillFields,   getCharCount,   getDebugInfo,   getOptionFlags,   getSid,   getString,   hashCode,   serialize,   setCharCount,   setCharCount,   setOptionFlags,   setString,   toString,   validateSid
Methods from org.apache.cocoon.poi.hssf.record.Record:
fillFields,   fillFields,   getRecordSize,   getSid,   isInValueSection,   isValue,   processContinueRecord,   serialize,   toString,   validateSid
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.poi.hssf.record.UnicodeString Detail:
 public boolean equals(Object o) 
 protected  void fillFields(byte[] data,
    short size) 
 protected  void fillFields(byte[] data,
    short size,
    int offset) 
    called by the constructor, should set class level fields. Should throw runtime exception for bad/icomplete data.
 public short getCharCount() 
    get the number of characters in the string
 public String getDebugInfo() 
    return a character representation of the fields of this record
 public byte getOptionFlags() 
    get the option flags which among other things return if this is a 16-bit or 8 bit string
 public short getSid() 
 public String getString() 
    get the actual string this contains as a java String object
 public int hashCode() 
 public byte[] serialize() 
 public  void setCharCount() 
    sets the number of characters to whaterver number of characters is in the string currently. effectively setCharCount(getString.length()).
 public  void setCharCount(short cc) 
    set the number of characters in the string
 public  void setOptionFlags(byte of) 
    set the option flags which among other things return if this is a 16-bit or 8 bit string
 public  void setString(String string) 
    set the actual string this contains
 public String toString() 
    unlike the real records we return the same as "getString()" rather than debug info
 protected  void validateSid(short id) 
    NO OP