class OTFParser extends TTFParser
{
    /**
     * Constructor.
     */
    public OTFParser()
    {
        super();
    }

    /**
     * Constructor.
     *
     * @param isEmbedded true if the font is embedded in PDF
     */
    public OTFParser(boolean isEmbedded)
    {
        super(isEmbedded);
    }

    @Override
    public OpenTypeFont parse(RandomAccessRead randomAccessRead) throws IOException
    {
        return (OpenTypeFont) super.parse(randomAccessRead);
    }

    @Override
    OpenTypeFont parse(TTFDataStream raf) throws IOException
    {
        return (OpenTypeFont)super.parse(raf);
    }
    
    @Override
    OpenTypeFont newFont(TTFDataStream raf)
    {
        return new OpenTypeFont(raf);
    }

    @Override
    protected TTFTable readTable(String tag)
    {<FILL_FUNCTION_BODY>}

    @Override
    protected boolean allowCFF()
    {
        return true;
    }
}

        // todo: this is a stub, a full implementation is needed
        switch (tag)
        {
            case "BASE":
            case "GDEF":
            case "GPOS":
            case GlyphSubstitutionTable.TAG:
            case OTLTable.TAG:
                return new OTLTable();
            case CFFTable.TAG:
                return new CFFTable();
            default:
                return super.readTable(tag);
        }
    
<methods>public void <init>() ,public void <init>(boolean) ,public org.apache.fontbox.ttf.TrueTypeFont parse(org.apache.pdfbox.io.RandomAccessRead) throws java.io.IOException,public org.apache.fontbox.ttf.TrueTypeFont parseEmbedded(java.io.InputStream) throws java.io.IOException<variables>private static final Logger LOG,private boolean isEmbedded