Class TextFileWriter

java.lang.Object
com.scriptbasic.utility.functions.file.TextFileWriter
All Implemented Interfaces:
NoAccess, FileHandler, java.lang.AutoCloseable

public class TextFileWriter
extends java.lang.Object
implements FileHandler, java.lang.AutoCloseable
  • Constructor Summary

    Constructors 
    Constructor Description
    TextFileWriter​(java.io.BufferedWriter bw)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    void newLine()  
    void print​(java.lang.String line)  

    Methods inherited from class java.lang.Object

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

    • TextFileWriter

      public TextFileWriter​(java.io.BufferedWriter bw)
  • Method Details

    • close

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

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

      public void newLine() throws java.io.IOException
      Throws:
      java.io.IOException