Class StreamCopy
java.lang.Object
org.archive.util.StreamCopy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcopy(InputStream i, OutputStream o) static longcopy(InputStream i, OutputStream o, int bytes) static longcopyLength(InputStream i, OutputStream o, long bytes) static longcopyLength(InputStream i, OutputStream o, long bytes, int readSize) static longstatic longreadToEOF(InputStream i, int bufferSize) static longstatic longskipChars(PushBackOneByteInputStream i, int[] skips)
-
Constructor Details
-
StreamCopy
public StreamCopy()
-
-
Method Details
-
copy
- Throws:
IOException
-
copy
- Throws:
IOException
-
copyLength
- Throws:
IOException
-
copyLength
public static long copyLength(InputStream i, OutputStream o, long bytes, int readSize) throws IOException - Throws:
IOException
-
readToEOF
- Throws:
IOException
-
readToEOF
- Throws:
IOException
-
readToEOFSingle
- Throws:
IOException
-
skipChars
- Throws:
IOException
-