152153154155156157158159160161162163164
* @throws GlyphException if the code has previously been marked as invalid // TODO useful ?? */ private boolean isAlreadyProcessed(int code) throws GlyphException { boolean already = false; GlyphDetail detail = codeToDetail.get(code); if (detail != null) { detail.throwExceptionIfNotValid(); already = true; } return already; }
187188189190191192193
markAsValid(code); } public final void markAsValid(int code) { this.codeToDetail.put(code, new GlyphDetail(code)); }
192193194195196197198
this.codeToDetail.put(code, new GlyphDetail(code)); } public final void markAsInvalid(int code, GlyphException e) { this.codeToDetail.put(code, new GlyphDetail(code, e)); }
126127128129130131132133134135136137138
* if the CID has previously been marked as invalid // TODO useful ?? */ protected boolean isAlreadyComputedCid(int cid) throws GlyphException { boolean already = false; GlyphDetail gdetail = this.computedCid.get(cid); if (gdetail != null) { gdetail.throwExceptionIfNotValid(); already = true; } return already; }
177178179180181182183
markCIDAsValid(cid); } public final void markCIDAsValid(int cid) { this.computedCid.put(cid, new GlyphDetail(cid)); }
182183184185186187188
this.computedCid.put(cid, new GlyphDetail(cid)); } public final void markCIDAsInvalid(int cid, GlyphException gex) { this.computedCid.put(cid, new GlyphDetail(cid, gex)); }