public class PHYLIPFileFormat extends Object
Modifier and Type | Method and Description |
---|---|
static void |
parse(PHYLIPFileListener listener,
BufferedReader reader) |
static void |
parseFile(PHYLIPFileListener listener,
File inputFile) |
static void |
parseInputStream(PHYLIPFileListener listener,
InputStream inputStream) |
static void |
parseReader(PHYLIPFileListener listener,
Reader inputReader) |
static void |
writeFile(File file,
Alignment alignment)
Writes the given Alignment in PHYLIP format to a file.
|
static void |
writeStream(OutputStream os,
Alignment alignment)
Writes the given Alignment in PHYLIP format to a stream.
|
static void |
writeWriter(Writer writer,
Alignment alignment)
Writes the given Alignment in PHYLIP format to a writer.
|
public static void parseFile(PHYLIPFileListener listener, File inputFile) throws IOException, ParseException
IOException
ParseException
public static void parseInputStream(PHYLIPFileListener listener, InputStream inputStream) throws IOException, ParseException
IOException
ParseException
public static void parseReader(PHYLIPFileListener listener, Reader inputReader) throws IOException, ParseException
IOException
ParseException
public static void parse(PHYLIPFileListener listener, BufferedReader reader) throws IOException, ParseException
IOException
ParseException
public static void writeFile(File file, Alignment alignment) throws IOException
file
- the file to write to.alignment
- the Alignment object to write.IOException
- if there is a problem during writing.public static void writeStream(OutputStream os, Alignment alignment) throws IOException
os
- the stream to write to.alignment
- the Alignment object to write.IOException
- if there is a problem during writing.public static void writeWriter(Writer writer, Alignment alignment) throws IOException
writer
- the writer to write to.alignment
- the Alignment object to write.IOException
- if there is a problem during writing.Copyright © 2014 BioJava. All rights reserved.