Class TextTraceWriter
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.simulator.parser.TextTraceWriter
-
- All Implemented Interfaces:
TraceWriter,Closeable,AutoCloseable
- Direct Known Subclasses:
AdaptSizeTraceWriter,LirsTraceWriter
public abstract class TextTraceWriter extends Object implements TraceWriter
A skeletal implementation that writes to the trace file as textual data.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTextTraceWriter(OutputStream output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected BufferedWriterwriter()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.benmanes.caffeine.cache.simulator.parser.TraceWriter
writeEvent, writeFooter, writeHeader
-
-
-
-
Constructor Detail
-
TextTraceWriter
protected TextTraceWriter(OutputStream output)
-
-
Method Detail
-
writer
protected BufferedWriter writer()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-