Documentation of 'de.erichseifert.gral.io.AbstractIOFactory' Java class
AbstractIOFactory
de.erichseifert.gral.io

Class AbstractIOFactory<T>

  • Type Parameters:
    T - The type of objects which should be produced by this factory
    All Implemented Interfaces:
    IOFactory<T>
    Direct Known Subclasses:
    DataReaderFactory, DataWriterFactory, DrawableWriterFactory


    public abstract class AbstractIOFactory<T>
    extends java.lang.Object
    implements IOFactory<T>
    Abstract implementation of IOFactory which provides basic functionality.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      T get(java.lang.String mimeType)
      Returns an object for reading or writing the specified format.
      java.util.List<IOCapabilities> getCapabilities()
      Returns a list of capabilities for all supported formats.
      IOCapabilities getCapabilities(java.lang.String mimeType)
      Returns the capabilities for a specific format.
      java.lang.String[] getSupportedFormats()
      Returns an array of Strings containing all supported formats.
      boolean isFormatSupported(java.lang.String mimeType)
      Returns whether the specified MIME type is supported.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCapabilities

        public IOCapabilities getCapabilities(java.lang.String mimeType)
        Returns the capabilities for a specific format.
        Specified by:
        getCapabilities in interface IOFactory<T>
        Parameters:
        mimeType - MIME type of the format
        Returns:
        Capabilities for the specified format.
      • getCapabilities

        public java.util.List<IOCapabilities> getCapabilities()
        Returns a list of capabilities for all supported formats.
        Specified by:
        getCapabilities in interface IOFactory<T>
        Returns:
        Supported capabilities.
      • getSupportedFormats

        public java.lang.String[] getSupportedFormats()
        Returns an array of Strings containing all supported formats.
        Specified by:
        getSupportedFormats in interface IOFactory<T>
        Returns:
        Supported formats.
      • isFormatSupported

        public boolean isFormatSupported(java.lang.String mimeType)
        Returns whether the specified MIME type is supported.
        Specified by:
        isFormatSupported in interface IOFactory<T>
        Parameters:
        mimeType - MIME type.
        Returns:
        true if supported, otherwise false.
      • get

        public T get(java.lang.String mimeType)
        Returns an object for reading or writing the specified format.
        Specified by:
        get in interface IOFactory<T>
        Parameters:
        mimeType - MIME type.
        Returns:
        Reader or writer for the specified MIME type.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.