Class LogWriter

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.Appendable, java.lang.AutoCloseable

    public class LogWriter
    extends java.io.PrintWriter
    Wraps Moditect Log with a PrintWriter in order to pass jdeps command output to it.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String ERROR_PREFIX  
      private Log log  
      private static java.lang.String WARNING_PREFIX  
      • Fields inherited from class java.io.PrintWriter

        out
      • Fields inherited from class java.io.Writer

        lock
    • Constructor Summary

      Constructors 
      Constructor Description
      LogWriter​(Log log)
      Creates a new PrintWriter that will write everything to the specified log in addition to System.out.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void println​(java.lang.String sText)
      Prints a String and then terminates the line.
      • Methods inherited from class java.io.PrintWriter

        append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
      • Methods inherited from class java.io.Writer

        nullWriter
      • Methods inherited from class java.lang.Object

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

      • LogWriter

        public LogWriter​(Log log)
        Creates a new PrintWriter that will write everything to the specified log in addition to System.out.
        Parameters:
        log - the log to write to
    • Method Detail

      • println

        public void println​(java.lang.String sText)
        Prints a String and then terminates the line. This method behaves as though it invokes PrintWriter.print(String) and then PrintWriter.println().
        Overrides:
        println in class java.io.PrintWriter
        Parameters:
        sText - the String value to be printed