Package mireka.pop.command
Class ResultListWriter
- Object
-
- mireka.pop.command.ResultListWriter
-
public class ResultListWriter extends ObjectResultListStream 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 voidendList()Writes out the closing dot only line, flushes the buffer, and logs the count of lines sent.voidwriteLine(String line)Sends and - depending on the log level - logs the supplied line.
-
-
-
Method Detail
-
writeLine
public void writeLine(String line) throws java.io.IOExceptionSends 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.IOExceptionWrites out the closing dot only line, flushes the buffer, and logs the count of lines sent.- Throws:
java.io.IOException
-
-