Package org.luwrain.util
Class StreamUtils
java.lang.Object
org.luwrain.util.StreamUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcopyAllBytes(InputStream is, OutputStream os) static longcopyAllBytes(InputStream is, OutputStream os, StreamUtils.Progress progress, StreamUtils.Interrupting interrupting) static byte[]static voidwriteAllBytes(OutputStream os, byte[] bytes) static voidwriteAllBytes(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
-