public class StreamUtils extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
COPY_BUFFER_SIZE |
Constructor and Description |
---|
StreamUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copy(InputStream in,
OutputStream out) |
static void |
copy(InputStream in,
OutputStream out,
byte[] buf) |
static void |
copy(InputStream in,
OutputStream out,
int len) |
static void |
copy(InputStream in,
OutputStream out,
int len,
byte[] buf) |
static void |
copy(InputStream in,
OutputStream out,
int len,
int swapBytes) |
static void |
copy(InputStream in,
OutputStream out,
int len,
int swapBytes,
byte[] buf) |
static InputStream |
openFileOrURL(String name) |
static void |
readFully(InputStream in,
byte[] b,
int off,
int len) |
static void |
skipFully(InputStream in,
long n) |
private static final int COPY_BUFFER_SIZE
public StreamUtils()
public static void readFully(InputStream in, byte[] b, int off, int len) throws IOException
IOException
public static void skipFully(InputStream in, long n) throws IOException
IOException
public static void copy(InputStream in, OutputStream out, byte[] buf) throws IOException
IOException
public static void copy(InputStream in, OutputStream out) throws IOException
IOException
public static void copy(InputStream in, OutputStream out, int len, byte[] buf) throws IOException
IOException
public static void copy(InputStream in, OutputStream out, int len) throws IOException
IOException
public static void copy(InputStream in, OutputStream out, int len, int swapBytes, byte[] buf) throws IOException
IOException
public static void copy(InputStream in, OutputStream out, int len, int swapBytes) throws IOException
IOException
public static InputStream openFileOrURL(String name) throws IOException
IOException
Copyright © 2017 dcm4che.org. All rights reserved.