Class FileSaver

  • All Implemented Interfaces:
    java.lang.Runnable

    final class FileSaver
    extends java.lang.Object
    implements java.lang.Runnable
    • Constructor Summary

      Constructors 
      Constructor Description
      FileSaver​(java.awt.Component _parentComponent, java.io.File _parentDirectory, java.lang.Iterable<TextFile> _files)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      private void saveFiles()  
      private void writeFile​(java.io.File _fileToSave, java.lang.String _contents)  
      • Methods inherited from class java.lang.Object

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

      • parentDirectory

        private final java.io.File parentDirectory
      • parentComponent

        private final java.awt.Component parentComponent
      • textFiles

        private final java.lang.Iterable<TextFile> textFiles
    • Constructor Detail

      • FileSaver

        FileSaver​(java.awt.Component _parentComponent,
                  java.io.File _parentDirectory,
                  java.lang.Iterable<TextFile> _files)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • saveFiles

        private void saveFiles()
      • writeFile

        private void writeFile​(java.io.File _fileToSave,
                               java.lang.String _contents)
                        throws java.io.IOException
        Parameters:
        _fileToSave -
        _contents -
        Throws:
        java.io.IOException