maltcms.io.xml.mzXML
Class MZXMLDataSource

java.lang.Object
  extended by maltcms.io.xml.mzXML.MZXMLDataSource
All Implemented Interfaces:
cross.IConfigurable, cross.io.IDataSource, Serializable, org.apache.commons.configuration.event.ConfigurationListener

public class MZXMLDataSource
extends Object
implements cross.io.IDataSource

Author:
Nils.Hoffmann@CeBiTec.Uni-Bielefeld.DE
See Also:
Serialized Form

Constructor Summary
MZXMLDataSource()
           
 
Method Summary
 int canRead(cross.datastructures.fragments.IFileFragment ff)
           
 void configurationChanged(org.apache.commons.configuration.event.ConfigurationEvent arg0)
           
 void configure(org.apache.commons.configuration.Configuration configuration)
           
 ArrayList<Array> readAll(cross.datastructures.fragments.IFileFragment f)
           
 ArrayList<Array> readIndexed(cross.datastructures.fragments.IVariableFragment f)
           
 Array readSingle(cross.datastructures.fragments.IVariableFragment f)
           
 ArrayList<cross.datastructures.fragments.IVariableFragment> readStructure(cross.datastructures.fragments.IFileFragment f)
           
 cross.datastructures.fragments.IVariableFragment readStructure(cross.datastructures.fragments.IVariableFragment f)
           
 List<String> supportedFormats()
           
 boolean write(cross.datastructures.fragments.IFileFragment f)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MZXMLDataSource

public MZXMLDataSource()
Method Detail

canRead

public int canRead(cross.datastructures.fragments.IFileFragment ff)
Specified by:
canRead in interface cross.io.IDataSource

configurationChanged

public void configurationChanged(org.apache.commons.configuration.event.ConfigurationEvent arg0)
Specified by:
configurationChanged in interface org.apache.commons.configuration.event.ConfigurationListener

configure

public void configure(org.apache.commons.configuration.Configuration configuration)
Specified by:
configure in interface cross.IConfigurable

readAll

public ArrayList<Array> readAll(cross.datastructures.fragments.IFileFragment f)
                         throws IOException,
                                cross.exception.ResourceNotAvailableException
Specified by:
readAll in interface cross.io.IDataSource
Throws:
IOException
cross.exception.ResourceNotAvailableException

readIndexed

public ArrayList<Array> readIndexed(cross.datastructures.fragments.IVariableFragment f)
                             throws IOException,
                                    cross.exception.ResourceNotAvailableException
Specified by:
readIndexed in interface cross.io.IDataSource
Throws:
IOException
cross.exception.ResourceNotAvailableException

readSingle

public Array readSingle(cross.datastructures.fragments.IVariableFragment f)
                 throws IOException,
                        cross.exception.ResourceNotAvailableException
Specified by:
readSingle in interface cross.io.IDataSource
Throws:
IOException
cross.exception.ResourceNotAvailableException

readStructure

public ArrayList<cross.datastructures.fragments.IVariableFragment> readStructure(cross.datastructures.fragments.IFileFragment f)
                                                                          throws IOException
Specified by:
readStructure in interface cross.io.IDataSource
Throws:
IOException

readStructure

public cross.datastructures.fragments.IVariableFragment readStructure(cross.datastructures.fragments.IVariableFragment f)
                                                               throws IOException,
                                                                      cross.exception.ResourceNotAvailableException
Specified by:
readStructure in interface cross.io.IDataSource
Throws:
IOException
cross.exception.ResourceNotAvailableException

supportedFormats

public List<String> supportedFormats()
Specified by:
supportedFormats in interface cross.io.IDataSource

write

public boolean write(cross.datastructures.fragments.IFileFragment f)
Specified by:
write in interface cross.io.IDataSource


Copyright © 2007-2012. All Rights Reserved.