Package ann4j

Class Writer

java.lang.Object
ann4j.Writer

public class Writer extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static BufferedWriter
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    end()
    This function closes the file that we opened in the start() function
    static void
    setFile(String filename)
     
    static void
    It sets the value of the static variable printInConsole to the value of the parameter bool.
    static void
    write(Object... ob)
    It takes in a variable number of arguments and prints them out
    static void
    writeln(Object... ob)
     

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Writer

      public Writer()
  • Method Details

    • write

      public static void write(Object... ob)
      It takes in a variable number of arguments and prints them out
    • writeln

      public static void writeln(Object... ob)
    • end

      public static void end()
      This function closes the file that we opened in the start() function
    • setFile

      public static void setFile(String filename)
    • setPrintInConsoleEnabled

      public static void setPrintInConsoleEnabled(boolean bool)
      It sets the value of the static variable printInConsole to the value of the parameter bool.
      Parameters:
      bool - true if you want to print in console as well, false if you don't.