Package org.biojava.bio.seq.io
Interface SeqFileFormer
-
- All Superinterfaces:
SeqIOListener
- All Known Implementing Classes:
EmblFileFormer,GenbankFileFormer,ProteinRefSeqFileFormer,SwissprotFileFormer
public interface SeqFileFormer extends SeqIOListener
Deprecated.Use org.biojavax.bio.seq.io framework insteadObjects implementing theSeqFileFormerinterface are responsible for the detailed formatting of sequence data prior to writing to aPrintStream. Some file formats, such as Fasta, are very simple and don't require aSeqFileFormer.- Since:
- 1.2
- Author:
- Keith James
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringBufferformatLocation(StringBuffer sb, Location loc, StrandedFeature.Strand strand)Deprecated.formatLocationcreates a String representation of aLocation.StringformatLocation(Feature theFeature)Deprecated.Formats the location of a feature.PrintStreamgetPrintStream()Deprecated.getPrintStreamreturns thePrintStreamto which an instance will write the formatted data.voidsetPrintStream(PrintStream stream)Deprecated.setPrintStreaminforms an instance whichPrintStreamto use.-
Methods inherited from interface org.biojava.bio.seq.io.SeqIOListener
addFeatureProperty, addSequenceProperty, addSymbols, endFeature, endSequence, setName, setURI, startFeature, startSequence
-
-
-
-
Method Detail
-
getPrintStream
PrintStream getPrintStream()
Deprecated.getPrintStreamreturns thePrintStreamto which an instance will write the formatted data. If this has not been set, an implementation should default to System.out.- Returns:
- the
PrintStreamwhich will be written to.
-
setPrintStream
void setPrintStream(PrintStream stream)
Deprecated.setPrintStreaminforms an instance whichPrintStreamto use.- Parameters:
stream- aPrintStreamto write to.
-
formatLocation
StringBuffer formatLocation(StringBuffer sb, Location loc, StrandedFeature.Strand strand)
Deprecated.formatLocationcreates a String representation of aLocation. The strand may not be relevant for all formats (e.g. it is relevant for Genbank and EMBL, but not for SwissProt). In such cases the implementation may accept a strand of 'unknown', '0' or '.'. AStringBufferis used to allow avoidance of expensiveStringmanipulations on (potentially very large numbers of) locations.- Parameters:
sb- aStringBufferto append the location to.loc- aLocationto format.strand- aStrandedFeature.Strandindicating any relevant strandedness.- Returns:
- a
StringBufferwith the location appended.
-
formatLocation
String formatLocation(Feature theFeature)
Deprecated.Formats the location of a feature. This version is required when formatting remote locations, since the location field of a remote feature is the projection of that feature on the sequence. When a distinction is made between 'order' and 'join' this method will likely be extended for that also.- Parameters:
theFeature- The feature with the location to format- Returns:
- String The formatted location
-
-