|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hslf.record.Record org.apache.poi.hslf.record.RecordAtom org.apache.poi.hslf.record.CString
public final class CString
A CString (type 4026). Holds a unicode string, and the first two bytes of the record header normally encode the count. Typically attached to some complex sequence of records, eg Commetns.
Field Summary |
---|
Fields inherited from class org.apache.poi.hslf.record.Record |
---|
logger |
Constructor Summary | |
---|---|
|
CString()
Create an empty CString |
protected |
CString(byte[] source,
int start,
int len)
For the CStrubg Atom |
Method Summary | |
---|---|
int |
getOptions()
Grabs the count, from the first two bytes of the header. |
long |
getRecordType()
We are of type 4026 |
java.lang.String |
getText()
Grabs the text. |
void |
setOptions(int count)
Sets the count The meaning of the count is specific to the type of the parent record |
void |
setText(java.lang.String text)
Updates the text in the Atom. |
java.lang.String |
toString()
Gets a string representation of this object, primarily for debugging. |
void |
writeOut(java.io.OutputStream out)
Write the contents of the record back, so it can be written to disk |
Methods inherited from class org.apache.poi.hslf.record.RecordAtom |
---|
getChildRecords, isAnAtom |
Methods inherited from class org.apache.poi.hslf.record.Record |
---|
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected CString(byte[] source, int start, int len)
public CString()
Method Detail |
---|
public java.lang.String getText()
null
public void setText(java.lang.String text)
public int getOptions()
public void setOptions(int count)
public long getRecordType()
getRecordType
in class Record
public void writeOut(java.io.OutputStream out) throws java.io.IOException
writeOut
in class Record
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |