de.erichseifert.gral.io
Class AbstractIOFactory<T>

java.lang.Object
  extended by de.erichseifert.gral.io.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 Object
implements IOFactory<T>

Abstract implementation of IOFactory which provides basic functionality.


Method Summary
 List<IOCapabilities> getCapabilities()
          Returns a list of capabilities for all supported formats.
 IOCapabilities getCapabilities(String mimeType)
          Returns the capabilities for a specific format.
 String[] getSupportedFormats()
          Returns an array of Strings containing all supported formats.
 boolean isFormatSupported(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
 
Methods inherited from interface de.erichseifert.gral.io.IOFactory
get
 

Method Detail

getCapabilities

public IOCapabilities getCapabilities(String mimeType)
Description copied from interface: IOFactory
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 List<IOCapabilities> getCapabilities()
Description copied from interface: IOFactory
Returns a list of capabilities for all supported formats.

Specified by:
getCapabilities in interface IOFactory<T>
Returns:
Supported capabilities.

getSupportedFormats

public String[] getSupportedFormats()
Description copied from interface: IOFactory
Returns an array of Strings containing all supported formats.

Specified by:
getSupportedFormats in interface IOFactory<T>
Returns:
Supported formats.

isFormatSupported

public boolean isFormatSupported(String mimeType)
Description copied from interface: IOFactory
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.


Copyright © 2009-2010. All Rights Reserved.