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