PDFStructureAttribute.java 1.4 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.internal.pdftoolkit.core.cos.CosDictionary
 *  com.adobe.internal.pdftoolkit.core.cos.CosObject
 *  com.adobe.internal.pdftoolkit.core.exceptions.PDFInvalidDocumentException
 */
package com.adobe.internal.pdftoolkit.pdf.interchange.structure;

import com.adobe.internal.pdftoolkit.core.cos.CosDictionary;
import com.adobe.internal.pdftoolkit.core.cos.CosObject;
import com.adobe.internal.pdftoolkit.core.exceptions.PDFInvalidDocumentException;
import com.adobe.internal.pdftoolkit.pdf.document.PDFCosObject;

public class PDFStructureAttribute
extends PDFCosObject {
    private PDFStructureAttribute(CosObject cosObject) throws PDFInvalidDocumentException {
        super(cosObject);
    }

    public static PDFStructureAttribute getInstance(CosObject cosObject) throws PDFInvalidDocumentException {
        if (PDFCosObject.checkNullCosObject(cosObject) == null) {
            return null;
        }
        PDFStructureAttribute pdfObject = PDFCosObject.getCachedInstance(cosObject, PDFStructureAttribute.class);
        if (pdfObject == null) {
            pdfObject = new PDFStructureAttribute(cosObject);
        }
        return pdfObject;
    }

    public static PDFStructureAttribute newInstance(CosDictionary attrDict) throws PDFInvalidDocumentException {
        return new PDFStructureAttribute((CosObject)attrDict);
    }
}