public class StreamUtil
extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE |
static boolean |
FORCE_TIO |
Constructor and Description |
---|
StreamUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cleanUp(boolean quiet,
Closeable... closeables) |
static void |
cleanUp(Closeable... closeables) |
static void |
transfer(InputStream inputStream,
OutputStream outputStream) |
static void |
transfer(InputStream inputStream,
OutputStream outputStream,
boolean cleanUp) |
static void |
transfer(InputStream inputStream,
OutputStream outputStream,
int bufferSize) |
static void |
transfer(InputStream inputStream,
OutputStream outputStream,
int bufferSize,
boolean cleanUp) |
static void |
transfer(InputStream inputStream,
OutputStream outputStream,
int bufferSize,
boolean cleanUp,
long length) |
static void |
transfer(InputStream inputStream,
OutputStream outputStream,
long length) |
protected static void |
transferByteArray(InputStream inputStream,
OutputStream outputStream,
int bufferSize,
long length) |
protected static void |
transferFileChannel(FileChannel inputFileChannel,
FileChannel outputFileChannel,
long length) |
static InputStream |
uncloseable(InputStream inputStream) |
static OutputStream |
uncloseable(OutputStream outputStream) |
public static final int BUFFER_SIZE
public static final boolean FORCE_TIO
public static void cleanUp(boolean quiet, Closeable... closeables)
public static void cleanUp(Closeable... closeables)
public static void transfer(InputStream inputStream, OutputStream outputStream) throws IOException
IOException
public static void transfer(InputStream inputStream, OutputStream outputStream, boolean cleanUp) throws IOException
IOException
public static void transfer(InputStream inputStream, OutputStream outputStream, int bufferSize) throws IOException
IOException
public static void transfer(InputStream inputStream, OutputStream outputStream, int bufferSize, boolean cleanUp) throws IOException
IOException
public static void transfer(InputStream inputStream, OutputStream outputStream, int bufferSize, boolean cleanUp, long length) throws IOException
IOException
public static void transfer(InputStream inputStream, OutputStream outputStream, long length) throws IOException
IOException
public static InputStream uncloseable(InputStream inputStream)
public static OutputStream uncloseable(OutputStream outputStream)
protected static void transferByteArray(InputStream inputStream, OutputStream outputStream, int bufferSize, long length) throws IOException
IOException
protected static void transferFileChannel(FileChannel inputFileChannel, FileChannel outputFileChannel, long length) throws IOException
IOException