|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.pax.runner.platform.internal.StreamUtils
public class StreamUtils
Stream related utilities. TODO add units tests
| Nested Class Summary | |
|---|---|
static class |
StreamUtils.CoarseGrainedProgressBar
A progress bar that displayed corse grained information about downloading of an artifact |
static class |
StreamUtils.FineGrainedProgressBar
A progress bar that displayed detailed information about downloading of an artifact |
static class |
StreamUtils.NullProgressBar
A progress bar that does nothing = does not display anything on console. |
static interface |
StreamUtils.ProgressBar
Feddback for downloading process. |
| Method Summary | |
|---|---|
static void |
streamCopy(java.io.InputStream in,
java.io.BufferedOutputStream out,
StreamUtils.ProgressBar progressBar)
Copy a stream to a destination. |
static void |
streamCopy(java.net.URL url,
java.io.BufferedOutputStream out,
StreamUtils.ProgressBar progressBar)
Copy a stream from an urlto a destination. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void streamCopy(java.io.InputStream in,
java.io.BufferedOutputStream out,
StreamUtils.ProgressBar progressBar)
throws java.io.IOException
in - the stream to copy fromout - the stream to copy toprogressBar - download progress feedback. Can be null.
java.io.IOException - re-thrown
public static void streamCopy(java.net.URL url,
java.io.BufferedOutputStream out,
StreamUtils.ProgressBar progressBar)
throws java.io.IOException
url - the url to copy fromout - the stream to copy toprogressBar - download progress feedback. Can be null.
java.io.IOException - re-thrown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||