public final class InputStreamUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
attemptClose(java.io.InputStream is)
Deprecated.
|
static void |
attemptClose(java.io.InputStream is,
RobustMessageLogger logger)
Deprecated.
|
static boolean |
compare(java.io.InputStream is1,
java.io.InputStream is2)
Deprecated.
|
static boolean |
compare(java.io.InputStream is1,
java.io.InputStream is2,
long num_bytes)
Deprecated.
|
static byte[] |
getBytes(java.io.InputStream is)
Deprecated.
|
static byte[] |
getBytes(java.io.InputStream is,
int max_len)
Deprecated.
|
static java.lang.String |
getContentsAsString(java.io.InputStream is)
Deprecated.
|
static java.lang.String |
getContentsAsString(java.io.InputStream is,
int max_len)
Deprecated.
|
static java.lang.String |
getContentsAsString(java.io.InputStream is,
int max_len,
java.lang.String enc)
Deprecated.
|
static java.lang.String |
getContentsAsString(java.io.InputStream is,
java.lang.String enc)
Deprecated.
|
static java.io.InputStream |
getEmptyInputStream()
Deprecated.
|
static void |
skipFully(java.io.InputStream is,
long num_bytes)
Deprecated.
|
public static boolean compare(java.io.InputStream is1, java.io.InputStream is2, long num_bytes) throws java.io.IOException
java.io.IOException
public static boolean compare(java.io.InputStream is1, java.io.InputStream is2) throws java.io.IOException
java.io.IOException
public static byte[] getBytes(java.io.InputStream is, int max_len) throws java.io.IOException
java.io.IOException
public static byte[] getBytes(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public static java.lang.String getContentsAsString(java.io.InputStream is, java.lang.String enc) throws java.io.IOException, java.io.UnsupportedEncodingException
java.io.IOException
java.io.UnsupportedEncodingException
public static java.lang.String getContentsAsString(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public static java.lang.String getContentsAsString(java.io.InputStream is, int max_len, java.lang.String enc) throws java.io.IOException, java.io.UnsupportedEncodingException
java.io.IOException
java.io.UnsupportedEncodingException
public static java.lang.String getContentsAsString(java.io.InputStream is, int max_len) throws java.io.IOException
java.io.IOException
public static java.io.InputStream getEmptyInputStream()
public static void attemptClose(java.io.InputStream is)
public static void attemptClose(java.io.InputStream is, RobustMessageLogger logger)
public static void skipFully(java.io.InputStream is, long num_bytes) throws java.io.EOFException, java.io.IOException
java.io.EOFException
java.io.IOException