Interface RotationStrategy

    • Method Detail

      • getNextWriter

        Writer getNextWriter​(Writer writer,
                             int charactersWritten)
                      throws IOException
        Called to get the next output writer when a call is made to RotationWriter.flush(). The current writer is provided as a parameter, so if no rotation should occur, just return the current writer.
        Parameters:
        writer - the current output writer
        charactersWritten - the number of characters written to the current writer
        Returns:
        the writer to output to in the future
        Throws:
        IOException