Class Writer

java.lang.Object
de.paull.lib.files.Writer

public class Writer extends Object
Writer class to write to files
  • Constructor Details

    • Writer

      public Writer()
  • Method Details

    • write

      public static void write(File f, String content, boolean append) throws IOException
      Parameters:
      f - file to write to
      content - content which will be written
      append - true for append, false for overwrite
      Throws:
      IOException - on error
    • writeCompressString

      public static void writeCompressString(String content, File file)
      Will compress the content and write it to the file
      Parameters:
      content - content which will be written
      file - file to write to