Package org.foray.font.output

Examples of org.foray.font.output.FontOutputFactory4a


    public FontOutput getFontOutput(final String mimeType) {
        FontOutput output = this.fontOutputs.get(mimeType);
        if (output != null) {
            return output;
        }
        final FontOutputFactory4a factory =
                getFOrayFontServer().getOutputFactory(mimeType);
        if (factory == null) {
            throw new UnsupportedOperationException("Unable to create "
                    + "FontOutput instance for: " + mimeType);
        }
        try {
            output = factory.createFontOutput(this);
        } catch (final FontException e) {
            getLogger().error("Error creating Font output for: " + mimeType
                    + "\n" + e.getMessage());
        }
        this.fontOutputs.put(mimeType, output);
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public boolean canMakeFontOutput(final String mimeType) {
        final FontOutputFactory4a factory =
                getFOrayFontServer().getOutputFactory(mimeType);
        if (factory == null) {
            return false;
        }
        return true;
View Full Code Here

     * @param mimeType The mime-type for which a factory is sought.
     * @return True iff a factory has already been registered for the given
     * mime-type.
     */
    public boolean fontOutputFactoryAvailable(final String mimeType) {
        final FontOutputFactory4a factory = getOutputFactory(mimeType);
        return factory != null;
    }
View Full Code Here

TOP

Related Classes of org.foray.font.output.FontOutputFactory4a

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.