public abstract static class RichSequenceFormat.BasicFormat extends Object implements RichSequenceFormat
RichSequenceFormat.BasicFormat, RichSequenceFormat.HeaderlessFormat| Constructor and Description |
|---|
BasicFormat() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(File file)
Check to see if a given file is in our format.
|
boolean |
getElideComments()
Is the format going to emit events when comments data or remarks from
bibliographic references are read?
|
boolean |
getElideFeatures()
Is the format going to emit events when feature data is read?
|
boolean |
getElideReferences()
Is the format going to emit events when bibliographic reference data is read?
|
boolean |
getElideSymbols()
Is the format going to emit events when sequence data is read?
|
int |
getLineWidth()
Retrive the current line width.
|
PrintStream |
getPrintStream()
Gets the print stream currently being written to.
|
SymbolTokenization |
guessSymbolTokenization(File file)
On the assumption that the file is readable by this format (not checked),
attempt to guess which symbol tokenization we should use to read it.
|
void |
setElideComments(boolean elideComments)
Use this method to toggle reading of comments data.
|
void |
setElideFeatures(boolean elideFeatures)
Use this method to toggle reading of feature data.
|
void |
setElideReferences(boolean elideReferences)
Use this method to toggle reading of bibliographic reference data.
|
void |
setElideSymbols(boolean elideSymbols)
Use this method to toggle reading of sequence data.
|
void |
setLineWidth(int width)
Set the line width.
|
void |
setPrintStream(PrintStream os)
Sets the stream to write to.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginWriting, canRead, finishWriting, guessSymbolTokenization, readRichSequence, writeSequencegetDefaultFormat, readSequence, writeSequence, writeSequencepublic BasicFormat()
public boolean canRead(File file) throws IOException
canRead in interface RichSequenceFormatfile - the File to check.IOException - in case the file is inaccessible.public SymbolTokenization guessSymbolTokenization(File file) throws IOException
guessSymbolTokenization in interface RichSequenceFormatfile - the File object to guess the format of.SymbolTokenization to read the file with.IOException - if the file is unrecognisable or inaccessible.public int getLineWidth()
getLineWidth in interface RichSequenceFormatpublic void setLineWidth(int width)
setLineWidth in interface RichSequenceFormatwidth - the new line widthpublic boolean getElideSymbols()
getElideSymbols in interface RichSequenceFormatpublic void setElideSymbols(boolean elideSymbols)
setElideSymbols in interface RichSequenceFormatelideSymbols - set to true if you don't want the sequence data.public boolean getElideFeatures()
getElideFeatures in interface RichSequenceFormatpublic void setElideFeatures(boolean elideFeatures)
setElideFeatures in interface RichSequenceFormatelideFeatures - set to true if you don't want the feature data.public boolean getElideReferences()
getElideReferences in interface RichSequenceFormatpublic void setElideReferences(boolean elideReferences)
setElideReferences in interface RichSequenceFormatelideReferences - set to true if you don't want the bibliographic reference data.public boolean getElideComments()
getElideComments in interface RichSequenceFormatpublic void setElideComments(boolean elideComments)
setElideComments in interface RichSequenceFormatelideComments - set to true if you don't want the comments data.public void setPrintStream(PrintStream os)
setPrintStream in interface RichSequenceFormatos - the PrintStream to write to.public PrintStream getPrintStream()
getPrintStream in interface RichSequenceFormatCopyright © 2020 BioJava. All rights reserved.