- java.lang.Object
-
- java.io.Writer
-
- java.io.FilterWriter
-
- me.tongfei.progressbar.wrapped.ProgressBarWrappedWriter
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.Appendable,java.lang.AutoCloseable
public class ProgressBarWrappedWriter extends java.io.FilterWriterA writer whose progress is tracked by a progress bar.- Since:
- 0.9.3
- Author:
- Tongfei Chen
-
-
Constructor Summary
Constructors Constructor Description ProgressBarWrappedWriter(java.io.Writer out, ProgressBar pb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(java.lang.String str)voidwrite(java.lang.String str, int off, int len)
-
-
-
Constructor Detail
-
ProgressBarWrappedWriter
public ProgressBarWrappedWriter(java.io.Writer out, ProgressBar pb)
-
-
Method Detail
-
write
public void write(int c) throws java.io.IOException- Overrides:
writein classjava.io.FilterWriter- Throws:
java.io.IOException
-
write
public void write(char[] cbuf, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.FilterWriter- Throws:
java.io.IOException
-
write
public void write(java.lang.String str, int off, int len) throws java.io.IOException- Overrides:
writein classjava.io.FilterWriter- Throws:
java.io.IOException
-
write
public void write(java.lang.String str) throws java.io.IOException- Overrides:
writein classjava.io.Writer- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.FilterWriter- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.FilterWriter- Throws:
java.io.IOException
-
-