uk.ac.ebi.intenz.tools.sib.writer
Class DefaultLineFormatter
java.lang.Object
uk.ac.ebi.intenz.tools.sib.writer.DefaultLineFormatter
- All Implemented Interfaces:
- LineFormatter
- Direct Known Subclasses:
- CC_LineFormatter
public class DefaultLineFormatter
- extends Object
- implements LineFormatter
Provides a default implementation which can be applied to all line types.
The only exception is the CC
line, which is an extension of this class.
- Version:
- $Revision: 1.2 $ $Date: 2008/01/28 11:43:23 $
- Author:
- Michael Darsow
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLineFormatter
public DefaultLineFormatter()
formatLines
public String formatLines(String text,
LineType lineType)
throws EnzymeFlatFileWriteException
- Formats the text by adding the line headers and wrapping the content using
LineWrapper
implementations.
- Specified by:
formatLines
in interface LineFormatter
- Parameters:
text
- The text to be formatted.lineType
- The line type
.
- Returns:
- the formatted text.
- Throws:
EnzymeFlatFileWriteException
- if an error occured during the formatting process.
NullPointerException
- if any of the parameters is null
.
Copyright © 2013 EMBL-EBI. All Rights Reserved.