uk.ac.ebi.adfconverter.common.tools.file.description
Class SimpleFileFormatDescription
java.lang.Object
uk.ac.ebi.adfconverter.common.tools.file.description.FileFormatDescription
uk.ac.ebi.adfconverter.common.tools.file.description.SimpleFileFormatDescription
- public class SimpleFileFormatDescription
- extends FileFormatDescription
This class is used to describe a file. it returns the file extension and the
file format
- Since:
- 24 sept. 2004
ADF MAGE-TOOL - MicroArray Informatics Team / European
Bioinformatics Institute (EBI)
ArrayExpress License:
==============================================================================
Copyright (c) 2002 The European Bioinformatics Institute. All rights
reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. The name ArrayExpress must not be used to endorse or promote products
derived from this software without prior written permission. For written
permission, please contact arrayexpress@ebi.ac.uk
4. Products derived from this software may not be called "ArrayExpress" nor
may "ArrayExpress" appear in their names without prior written permission of
the ArrayExpress developers.
5. Redistributions of any form whatsoever must retain the following
acknowledgment: "This product includes software developed by ArrayExpress
(http://www.ebi.ac.uk/arrayexpress)"
THIS SOFTWARE IS PROVIDED BY THE ARRAYEXPRESS GROUP ``AS IS'' AND ANY
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE ARRAYEXPRESS GROUP OR ITS CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
The European Bioinformatics Institute may publish revised and/or new versions
of this license with new releases of ArrayExpress software.
==============================================================================
- Version:
- 1
- Author:
- Pierre MARGUERITE
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleFileFormatDescription
public SimpleFileFormatDescription(java.io.File file)
- the constructor initialises the file to describe
- Parameters:
file - the file to describe
getDataFileType
public int getDataFileType()
- Retrieves the the file format
- Specified by:
getDataFileType in class FileFormatDescription
- Returns:
- the filetype as integer (UNKNOWNFILE, TEXTFILE,WORKBOOKFILE
( describe in uk.ac.ebi.adfconverter.common.data.tabulardata.DataTable class)
- See Also:
DataTable
getFileExtension
public java.lang.String getFileExtension()
- Retrieves the the file extension
- Specified by:
getFileExtension in class FileFormatDescription
- Returns:
- the file extension as String
getFileFormat
public java.lang.String getFileFormat()
- Retrieves the fileformat of the file as String
- Returns:
- the file format name (text, workbook)
European Bioinformatics InstituteMicroarray Informatics Team