ParagraphHeightpublic class ParagraphHeight extends Object
Fields Summary |
---|
private short | infoField | private BitField | fSpare | private BitField | fUnk | private BitField | fDiffLines | private BitField | clMac | private short | reserved | private int | dxaCol | private int | dymLineOrHeight |
Constructors Summary |
---|
public ParagraphHeight(byte[] buf, int offset)
infoField = LittleEndian.getShort(buf, offset);
offset += LittleEndian.SHORT_SIZE;
reserved = LittleEndian.getShort(buf, offset);
offset += LittleEndian.SHORT_SIZE;
dxaCol = LittleEndian.getInt(buf, offset);
offset += LittleEndian.INT_SIZE;
dymLineOrHeight = LittleEndian.getInt(buf, offset);
| public ParagraphHeight()
|
Methods Summary |
---|
public boolean | equals(java.lang.Object o)
ParagraphHeight ph = (ParagraphHeight)o;
return infoField == ph.infoField && reserved == ph.reserved &&
dxaCol == ph.dxaCol && dymLineOrHeight == ph.dymLineOrHeight;
| protected byte[] | toByteArray()
byte[] buf = new byte[12];
int offset = 0;
LittleEndian.putShort(buf, offset, infoField);
offset += LittleEndian.SHORT_SIZE;
LittleEndian.putShort(buf, offset, reserved);
offset += LittleEndian.SHORT_SIZE;
LittleEndian.putInt(buf, offset, dxaCol);
offset += LittleEndian.INT_SIZE;
LittleEndian.putInt(buf, offset, dymLineOrHeight);
return buf;
| public void | write(java.io.OutputStream out)
out.write(toByteArray());
|
|