public interface RotationStrategy
Writerrotation strategy that can be used in cooperation with
RotationWriterto have one virtual
Writerthat seamless rotates output to multiple output writers.
Writer getFirstWriter() throws IOException
Writer getNextWriter(Writer writer, int charactersWritten) throws IOException
RotationWriter.flush(). The current writer is provided as a parameter, so if no rotation should occur, just return the current writer.
writer- the current output writer
charactersWritten- the number of characters written to the current writer
Copyright © 2014 OneBusAway. All Rights Reserved.