Class SimpleTextFileWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Direct Known Subclasses:
    DatLoadFileWriter

    public class SimpleTextFileWriter
    extends java.lang.Object
    implements java.io.Closeable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.io.File destinationFile  
      protected java.io.FileWriter fw  
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleTextFileWriter​(java.io.File destinationFile)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.io.File getDestinationFile()  
      void writeLine​(java.lang.String line)  
      • Methods inherited from class java.lang.Object

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

      • destinationFile

        protected java.io.File destinationFile
      • fw

        protected java.io.FileWriter fw
    • Constructor Detail

      • SimpleTextFileWriter

        public SimpleTextFileWriter​(java.io.File destinationFile)
                             throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • writeLine

        public void writeLine​(java.lang.String line)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • getDestinationFile

        public java.io.File getDestinationFile()
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException