Methods Summary |
---|
public boolean | equals(java.lang.Object o)
boolean retVal = true;
if(((FontTable)o).getStringCount() == _stringCount)
{
if(((FontTable)o).getExtraDataSz() == _extraDataSz)
{
Ffn[] fontNamesNew = ((FontTable)o).getFontNames();
for(int i = 0;i<_stringCount; i++)
{
if(!(_fontNames[i].equals(fontNamesNew[i])))
retVal = false;
}
}
else
retVal = false;
}
else
retVal = false;
return retVal;
|
public java.lang.String | getAltFont(int chpFtc)
if(chpFtc >= _stringCount)
{
System.out.println("Mismatch in chpFtc with stringCount");
return null;
}
return _fontNames[chpFtc].getAltFontName();
|
public short | getExtraDataSz()
return _extraDataSz;
|
public org.apache.poi.hwpf.model.Ffn[] | getFontNames()
return _fontNames;
|
public java.lang.String | getMainFont(int chpFtc)
if(chpFtc >= _stringCount)
{
System.out.println("Mismatch in chpFtc with stringCount");
return null;
}
return _fontNames[chpFtc].getMainFontName();
|
public int | getSize()
return lcbSttbfffn;
|
public short | getStringCount()
return _stringCount;
|
public void | setStringCount(short stringCount)
this._stringCount = stringCount;
|
public void | writeTo(org.apache.poi.hwpf.model.io.HWPFFileSystem sys)
HWPFOutputStream tableStream = sys.getStream("1Table");
byte[] buf = new byte[LittleEndian.SHORT_SIZE];
LittleEndian.putShort(buf, _stringCount);
tableStream.write(buf);
LittleEndian.putShort(buf, _extraDataSz);
tableStream.write(buf);
for(int i = 0; i < _fontNames.length; i++)
{
tableStream.write(_fontNames[i].toByteArray());
}
|