Class ProgressBarWrappedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.auto.framework.runner.console.progressbar.wrapped.ProgressBarWrappedInputStream
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class ProgressBarWrappedInputStream
extends java.io.FilterInputStream
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ProgressBarWrappedInputStream(java.io.InputStream in, ProgressBar pb) -
Method Summary
Modifier and Type Method Description voidclose()ProgressBargetProgressBar()voidmark(int readLimit)intread()intread(byte[] b)intread(byte[] b, int off, int len)voidreset()longskip(long n)
-
Constructor Details
-
Method Details
-
getProgressBar
-
read
public int read() throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b) throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Overrides:
skipin classjava.io.FilterInputStream- Throws:
java.io.IOException
-
mark
public void mark(int readLimit)- Overrides:
markin classjava.io.FilterInputStream
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.FilterInputStream- 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.FilterInputStream- Throws:
java.io.IOException
-