public class TimeRotationStrategy extends Object implements RotationStrategy
RotationStrategythat writes output to file whose named is specified using a format processed using the the
SimpleDateFormatclass. This allows one to get standard time-based file rotation with whatever time granularity and formatting you may desire.
|Modifier and Type||Method and Description|
Called to get the next output writer when a call is made to
public TimeRotationStrategy(String format)
public Writer getFirstWriter() throws IOException
public 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.
Copyright © 2014 OneBusAway. All Rights Reserved.