/** * Get the size of the table, in bytes */ @Override public int getLength() { // start with the size of the fixed data int length = 4; // add the size of the subtables length += subtables.size() * 8; // add the size of the dynamic data for (Iterator i = subtables.values().iterator(); i.hasNext();) { // add the size of the subtable data CMap map = (CMap) i.next(); length += map.getLength(); } return length; }
/** * Get the size of the table, in bytes */ @Override public int getLength() { // start with the size of the fixed data int length = 4; // add the size of the subtables length += subtables.size() * 8; // add the size of the dynamic data for (Iterator i = subtables.values().iterator(); i.hasNext();) { // add the size of the subtable data CMap map = (CMap) i.next(); length += map.getLength(); } return length; }
/** * Get the size of the table, in bytes */ @Override public int getLength() { // start with the size of the fixed data int length = 4; // add the size of the subtables length += subtables.size() * 8; // add the size of the dynamic data for (Iterator i = subtables.values().iterator(); i.hasNext();) { // add the size of the subtable data CMap map = (CMap) i.next(); length += map.getLength(); } return length; }
buf.putInt(curOffset); curOffset += map.getLength();
/** Print a pretty string */ @Override public String toString () { String indent = " "; return indent + " format: " + getFormat () + " length: " + getLength () + " language: " + getLanguage () + "\n"; } }
/** Print a pretty string */ @Override public String toString () { String indent = " "; return indent + " format: " + getFormat () + " length: " + getLength () + " language: " + getLanguage () + "\n"; } }
buf.putInt(curOffset); curOffset += map.getLength();
/** Print a pretty string */ @Override public String toString () { String indent = " "; return indent + " format: " + getFormat () + " length: " + getLength () + " language: " + getLanguage () + "\n"; } }
buf.putInt(curOffset); curOffset += map.getLength();