Package org.luwrain.util
Class StreamUtils
java.lang.Object
org.luwrain.util.StreamUtils
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
copyAllBytes
(InputStream is, OutputStream os) static long
copyAllBytes
(InputStream is, OutputStream os, StreamUtils.Progress progress, StreamUtils.Interrupting interrupting) static byte[]
static void
writeAllBytes
(OutputStream os, byte[] bytes) static void
writeAllBytes
(OutputStream os, byte[] bytes, int numBytes)
-
Field Details
-
BUF_SIZE
public static final int BUF_SIZE- See Also:
-
-
Constructor Details
-
StreamUtils
public StreamUtils()
-
-
Method Details
-
copyAllBytes
- Throws:
IOException
-
copyAllBytes
public static long copyAllBytes(InputStream is, OutputStream os, StreamUtils.Progress progress, StreamUtils.Interrupting interrupting) throws IOException - Throws:
IOException
-
readAllBytes
- Throws:
IOException
-
writeAllBytes
- Throws:
IOException
-
writeAllBytes
- Throws:
IOException
-