Class AbstractGradleLogProcessor

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
    Direct Known Subclasses:
    DevelocityExceptionLogProcessor, GradleConsoleAnnotator

    public abstract class AbstractGradleLogProcessor
    extends hudson.console.LineTransformationOutputStream
    • Nested Class Summary

      • Nested classes/interfaces inherited from class hudson.console.LineTransformationOutputStream

        hudson.console.LineTransformationOutputStream.Delegating
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.nio.charset.Charset charset  
      protected java.io.OutputStream out  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractGradleLogProcessor​(int maxLineLength, java.io.OutputStream out, java.nio.charset.Charset charset)  
      protected AbstractGradleLogProcessor​(java.io.OutputStream out, java.nio.charset.Charset charset)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected void eol​(byte[] bytes, int length)  
      void flush()  
      protected abstract void processLogLine​(java.lang.String line)  
      • Methods inherited from class hudson.console.LineTransformationOutputStream

        forceEol, trimEOL, write, write
      • Methods inherited from class java.io.OutputStream

        nullOutputStream, write
      • Methods inherited from class java.lang.Object

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

      • out

        protected final java.io.OutputStream out
      • charset

        protected final java.nio.charset.Charset charset
    • Constructor Detail

      • AbstractGradleLogProcessor

        protected AbstractGradleLogProcessor​(java.io.OutputStream out,
                                             java.nio.charset.Charset charset)
      • AbstractGradleLogProcessor

        protected AbstractGradleLogProcessor​(int maxLineLength,
                                             java.io.OutputStream out,
                                             java.nio.charset.Charset charset)
    • Method Detail

      • eol

        protected final void eol​(byte[] bytes,
                                 int length)
                          throws java.io.IOException
        Specified by:
        eol in class hudson.console.LineTransformationOutputStream
        Throws:
        java.io.IOException
      • processLogLine

        protected abstract void processLogLine​(java.lang.String line)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • flush

        public final void flush()
                         throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.OutputStream
        Throws:
        java.io.IOException
      • close

        public final void close()
                         throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class hudson.console.LineTransformationOutputStream
        Throws:
        java.io.IOException