protected COSIndirect(final COSKey key, final COSDocument document) { super(); this.key = key; this.document = document; this.child = new COSObject(); }
/** * @param dictionary * is signature reference dictionary. */ public GFPDSigRef(COSDictionary dictionary) { super(new COSObject(dictionary), SIGNATURE_REFERENCE_TYPE); }
public boolean setNameKey(final ASAtom key, final ASAtom value) { COSObject obj = new COSObject(); obj.setName(value); this.entries.put(key, obj); return true; }
public boolean setBooleanKey(final ASAtom key, final boolean value) { COSObject obj = new COSObject(); obj.setBoolean(value); this.entries.put(key, obj); return true; }
public boolean setStringKey(final ASAtom key, final String value) { COSObject obj = new COSObject(); obj.setString(value); this.entries.put(key, obj); return true; }
public PDPageTreeBranch() { this.isTerminal = true; this.leafCount = 0; this.children = new ArrayList<>(); super.setObject(new COSObject()); }
public void mark() { if (this.document != null) { COSObject object = new COSObject(this); this.document.setObject(object); } }
public boolean setIntegerKey(final ASAtom key, final long value) { COSObject obj = new COSObject(); obj.setInteger(value); this.entries.put(key, obj); return true; }
public boolean setArrayKey(final ASAtom key) { COSObject obj = new COSObject(); obj.setArray(); this.entries.put(key, obj); return true; }
public boolean setArrayKey(final ASAtom key, final int size, final COSObject[] value) { COSObject obj = new COSObject(); obj.setArray(size, value); this.entries.put(key, obj); return true; }
public boolean setArrayKey(final ASAtom key, final int size, final double[] value) { COSObject obj = new COSObject(); obj.setArray(size, value); this.entries.put(key, obj); return true; }
public COSObject at(final int i) { if (i >= this.entries.size()) { return new COSObject(); } return _at(i); }
public boolean setRealKey(final ASAtom key, final double value) { COSObject obj = new COSObject(); obj.setReal(value); this.entries.put(key, obj); return true; }
protected COSIndirect() { super(); this.key = new COSKey(); this.document = new COSDocument(null); this.child = new COSObject(); }
protected COSIndirect(final COSObject value, final COSDocument document) { super(); this.key = new COSKey(); this.document = document; this.child = new COSObject(); if (document == null) { this.child = value; } else { this.key = this.document.setObject(value); this.child = value; } }
public void visitFromDictionary(COSDictionary obj) { this.copy.assign(COSDictionary.construct()); for (Map.Entry<ASAtom, COSObject> entry : obj.getEntrySet()) { COSObject element = new COSObject(); COSCopier copier = new COSCopier(element); entry.getValue().accept(copier); this.copy.setKey(entry.getKey(), element); } }
protected COSObject getName() throws IOException { if (this.flag) { nextToken(); } this.flag = true; final Token token = getToken(); if (token.type != Token.Type.TT_NAME) { return new COSObject(); } return COSName.construct(token.getValue()); }
protected COSObject getName() throws IOException { if (this.flag) { nextToken(); } this.flag = true; final Token token = getToken(); if (token.type != Token.Type.TT_NAME) { return new COSObject(); } return COSName.construct(token.getValue()); }
public void visitFromArray(COSArray obj) { this.copy.assign(COSArray.construct()); for (int i = 0; i < obj.size(); ++i) { COSObject element = new COSObject(); COSCopier copier = new COSCopier(element); obj.at(i).accept(copier); this.copy.add(element); } }
public void setTrailer(final COSTrailer trailer, final long prev) { COSObject element = new COSObject(); COSCopier copier = new COSCopier(element); trailer.getObject().accept(copier); this.info.getTrailer().setObject(element); this.info.getTrailer().setPrev(prev); if (prev == 0) { this.info.getTrailer().removeKey(ASAtom.ID); } }