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