Class GenbankWriter<S extends Sequence<?>,​C extends Compound>


  • public class GenbankWriter<S extends Sequence<?>,​C extends Compound>
    extends java.lang.Object
    Author:
    mckeee1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLineLength()  
      void process()
      Allow an override of operating system line separator for programs that needs a specific CRLF or CR or LF option
      void setLineLength​(int lineLength)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GenbankWriter

        public GenbankWriter​(java.io.OutputStream os,
                             java.util.Collection<S> sequences,
                             GenbankHeaderFormatInterface<S,​C> headerFormat)
        Use default line length of 60
        Parameters:
        os -
        sequences -
        headerFormat -
      • GenbankWriter

        public GenbankWriter​(java.io.OutputStream os,
                             java.util.Collection<S> sequences,
                             GenbankHeaderFormatInterface<S,​C> headerFormat,
                             int lineLength)
        Set custom lineLength
        Parameters:
        os -
        sequences -
        headerFormat -
        lineLength -
    • Method Detail

      • process

        public void process()
                     throws java.lang.Exception
        Allow an override of operating system line separator for programs that needs a specific CRLF or CR or LF option
        Parameters:
        lineSeparator -
        Throws:
        java.lang.Exception
      • getLineLength

        public int getLineLength()
        Returns:
        the lineLength
      • setLineLength

        public void setLineLength​(int lineLength)
        Parameters:
        lineLength - the lineLength to set