com.mchange.v1.io
Class InputStreamUtils
java.lang.Object
com.mchange.v1.io.InputStreamUtils
public final class InputStreamUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
compare
public static boolean compare(InputStream is1,
InputStream is2,
long num_bytes)
throws IOException
- Throws:
IOException
compare
public static boolean compare(InputStream is1,
InputStream is2)
throws IOException
- Throws:
IOException
getBytes
public static byte[] getBytes(InputStream is,
int max_len)
throws IOException
- Throws:
IOException
getBytes
public static byte[] getBytes(InputStream is)
throws IOException
- Throws:
IOException
getContentsAsString
public static String getContentsAsString(InputStream is,
String enc)
throws IOException,
UnsupportedEncodingException
- Throws:
IOException
UnsupportedEncodingException
getContentsAsString
public static String getContentsAsString(InputStream is)
throws IOException
- Throws:
IOException
getContentsAsString
public static String getContentsAsString(InputStream is,
int max_len,
String enc)
throws IOException,
UnsupportedEncodingException
- Throws:
IOException
UnsupportedEncodingException
getContentsAsString
public static String getContentsAsString(InputStream is,
int max_len)
throws IOException
- Throws:
IOException
getEmptyInputStream
public static InputStream getEmptyInputStream()
attemptClose
public static void attemptClose(InputStream is)
skipFully
public static void skipFully(InputStream is,
long num_bytes)
throws EOFException,
IOException
- Throws:
EOFException
IOException