Class ResultListWriter


  • public class ResultListWriter
    extends Object
    ResultListStream can be used to send POP3 list responses to LIST and UIDL commands with reduced logging. On DEBUG level it logs only the count of response lines instead of each line. On TRACE level it logs all lines. It also buffers the output.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResultListWriter​(java.io.OutputStream outStream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void endList()
      Writes out the closing dot only line, flushes the buffer, and logs the count of lines sent.
      void writeLine​(String line)
      Sends and - depending on the log level - logs the supplied line.
      • Methods inherited from class java.lang.Object

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

      • ResultListWriter

        public ResultListWriter​(java.io.OutputStream outStream)
    • Method Detail

      • writeLine

        public void writeLine​(String line)
                       throws java.io.IOException
        Sends and - depending on the log level - logs the supplied line.
        Parameters:
        line - the line to be written out, without EOL characters.
        Throws:
        java.io.IOException
      • endList

        public void endList()
                     throws java.io.IOException
        Writes out the closing dot only line, flushes the buffer, and logs the count of lines sent.
        Throws:
        java.io.IOException