Package org.foray.graphic.output

Examples of org.foray.graphic.output.GraphicOutputFactory


    /**
     * {@inheritDoc}
     */
    public GraphicOutput getGraphicOutput(final String mimeType) {
        final GraphicOutputFactory factory = getServer().getOutputFactory(
                mimeType);
        if (factory == null) {
            throw new UnsupportedOperationException("Unable to create "
                    + "GraphicOutput instance for: " + mimeType);
        }
        GraphicOutput output = null;
        try {
            output = factory.createGraphicOutput(this);
        } catch (final GraphicException e) {
            getLogger().error("Error creating Graphic output for: " + mimeType
                    + "\n" + e.getMessage());
        }
        return output;
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public boolean canMakeGraphicOutput(final String mimeType) {
        final GraphicOutputFactory factory = getServer().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 graphicOutputFactoryAvailable(final String mimeType) {
        final GraphicOutputFactory factory = getOutputFactory(mimeType);
        return factory != null;
    }
View Full Code Here

TOP

Related Classes of org.foray.graphic.output.GraphicOutputFactory

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.