Package de.isas.mztab2.io
Interface MzTabWriter<T>
-
- Type Parameters:
T
- the return type of the write methods.
- All Known Implementing Classes:
MzTabNonValidatingWriter
,MzTabValidatingWriter
public interface MzTabWriter<T>
Interface for mztab writer implementors.- Author:
- nilshoffmann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<T>
write(OutputStreamWriter writer, MzTab mzTab)
Write the mzTab object to the provided output stream writer.Optional<T>
write(Path path, MzTab mzTab)
Write the mzTab object to the provided path file.
-
-
-
Method Detail
-
write
Optional<T> write(OutputStreamWriter writer, MzTab mzTab) throws IOException
Write the mzTab object to the provided output stream writer.
This method does not close the output stream but will issue aflush
on the provided output stream writer!- Parameters:
writer
- aOutputStreamWriter
object.mzTab
- aMzTab
object.- Returns:
- the optional payload.
- Throws:
IOException
- if any errors occur during writing.
-
write
Optional<T> write(Path path, MzTab mzTab) throws IOException
Write the mzTab object to the provided path file.
- Parameters:
path
- aPath
object.mzTab
- aMzTab
object.- Returns:
- the optional payload.
- Throws:
IOException
- if any errors occur during writing.
-
-