All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.intarsys.pdf.font.InternalCMap Maven / Gradle / Ivy

Go to download

This is a fork of http://sourceforge.net/projects/jpodlib/ as development seems to be frozen. We're providing some bug fixes along with deployments to maven.

There is a newer version: 2.0
Show newest version
package de.intarsys.pdf.font;

import de.intarsys.pdf.content.CSContent;
import de.intarsys.pdf.cos.COSObject;

public class InternalCMap extends StreamBasedCMap {
    /**
     * The meta class implementation
     */
    public static class MetaClass extends StreamBasedCMap.MetaClass {
        protected MetaClass(Class instanceClass) {
            super(instanceClass);
        }
    }

    /**
     * The meta class instance
     */
    public static final MetaClass META = new MetaClass(MetaClass.class.getDeclaringClass());

    protected InternalCMap(COSObject object) {
        super(object);
    }

    /*
     * (non-Javadoc)
     *
     * @see de.intarsys.pdf.cos.COSBasedObject#initializeFromCos()
     */
    @Override
    protected void initializeFromCos() {
        super.initializeFromCos();
        CSContent result = CSContent.createFromCos(cosGetStream());
        initializeFromContent(result);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy