1
Vote

GenBankFormatter close writer if Open(StreamWriter outStream)

description

  1. outStream can not be used after Write(ICollection<ISequence> sequences), since it is
        finally
        {
            if (writer != null)
            {
                writer.Close();
                writer.Dispose();
            }
        }
    
  2. is actually a request: We have a need to write ISequence to string. Can you support public void Open(TextWriter outWriter), That case StringWritter can be used. And you do have
    private TextWriter writer;
Thanks,

comments

evolvedmicrobe wrote Jun 27, 2015 at 10:03 PM

Does this refer to the latest version (2.0) of the library? I don't see the Write(ICollection<ISequence> sequences) you are referring to in the current genbank formatter.

The new version has

public void Format(Stream stream, IEnumerable<ISequence> sequences)

Which flushes, but does not close the stream after writing.