Package org.apache.poi.hwpf.model
Class FontTable
- java.lang.Object
-
- org.apache.poi.hwpf.model.FontTable
-
@Internal public final class FontTable extends Object
FontTable or in MS terminology sttbfffn is a common data structure written in all Word files. The sttbfffn is an sttbf where each string is an FFN structure instead of pascal-style strings. An sttbf is a string Table stored in file. Thus sttbffn is like an Sttbf with an array of FFN structures that stores the font name strings
-
-
Constructor Summary
Constructors Constructor Description FontTable(byte[] buf, int offset, int lcbSttbfffn)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object other)
String
getAltFont(int chpFtc)
short
getExtraDataSz()
Ffn[]
getFontNames()
String
getMainFont(int chpFtc)
int
getSize()
short
getStringCount()
int
hashCode()
void
setStringCount(short stringCount)
void
writeTo(ByteArrayOutputStream tableStream)
void
writeTo(HWPFFileSystem sys)
Deprecated.
-
-
-
Method Detail
-
getStringCount
public short getStringCount()
-
getExtraDataSz
public short getExtraDataSz()
-
getFontNames
public Ffn[] getFontNames()
-
getSize
public int getSize()
-
getMainFont
public String getMainFont(int chpFtc)
-
getAltFont
public String getAltFont(int chpFtc)
-
setStringCount
public void setStringCount(short stringCount)
-
writeTo
@Deprecated public void writeTo(HWPFFileSystem sys) throws IOException
Deprecated.- Throws:
IOException
-
writeTo
public void writeTo(ByteArrayOutputStream tableStream) throws IOException
- Throws:
IOException
-
-