RbDe rbde-349 (20120127151154)

edu.mssm.crover.imports
Interface ReaderType

All Known Implementing Classes:
AbstractReaderType, FastaReaderType, PDBReaderType, PIRReaderType, SwissProtReaderType

public interface ReaderType

ReaderType encapsulates the information about a sequence "file format".


Method Summary
 String[] getExtensions()
          Returns the filename extensions the ReaderType uses to guess if it can handle an InputStream.
 String getInfo()
          Returns detailed information about the format parsed by this ReaderType.
 String getShortName()
          Returns the short name of this ReaderType.
 boolean matchExtension(String extension)
          Returns true when the ReaderType can handle the given extension.
 

Method Detail

getInfo

String getInfo()
Returns detailed information about the format parsed by this ReaderType.

Returns:
detailed information represented in a string

getShortName

String getShortName()
Returns the short name of this ReaderType. This string is typically less than 10 characters and can be presented to the user so that he can recognize the format.

Returns:
the short name of the reader

getExtensions

String[] getExtensions()
Returns the filename extensions the ReaderType uses to guess if it can handle an InputStream.

Returns:
an array of supported extensions

matchExtension

boolean matchExtension(String extension)
Returns true when the ReaderType can handle the given extension.

Parameters:
extension - The extension to check
Returns:
true if the extension is supported by the ReaderType, false otherwise

RbDe rbde-349 (20120127151154)

Copyright © 2003-2012 Institute for Computational Biomedicine, All Rights Reserved.