Top Fields Constructors Methods
com.mchange.v1.io

public final Class InputStreamUtils

extends Object
Class Inheritance
Imports
java.io.*, com.mchange.v2.log.*

Field Summary

Modifier and TypeField and Description
private static InputStream
private static final MLogger

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
public static void
public static void
public static boolean
compare(InputStream is1, InputStream is2, long num_bytes)

public static boolean
public static byte[]
getBytes(InputStream is, int max_len)

public static byte[]
public static String
public static String
public static String
getContentsAsString(InputStream is, int max_len, String enc)

public static String
public static InputStream
public static void
skipFully(InputStream is, long num_bytes)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

EMPTY_ISTREAMback to summary
private static InputStream EMPTY_ISTREAM
loggerback to summary
private static final MLogger logger

Constructor Detail

InputStreamUtilsback to summary
private InputStreamUtils()

Method Detail

attemptCloseback to summary
public static void attemptClose(InputStream is, MLogger mlogger)
attemptCloseback to summary
public static void attemptClose(InputStream is)
attemptCloseIgnoreback to summary
public static void attemptCloseIgnore(InputStream is)
compareback to summary
public static boolean compare(InputStream is1, InputStream is2, long num_bytes) throws IOException
compareback to summary
public static boolean compare(InputStream is1, InputStream is2) throws IOException
getBytesback to summary
public static byte[] getBytes(InputStream is, int max_len) throws IOException
getBytesback to summary
public static byte[] getBytes(InputStream is) throws IOException
getContentsAsStringback to summary
public static String getContentsAsString(InputStream is, String enc) throws IOException, UnsupportedEncodingException
getContentsAsStringback to summary
public static String getContentsAsString(InputStream is) throws IOException
getContentsAsStringback to summary
public static String getContentsAsString(InputStream is, int max_len, String enc) throws IOException, UnsupportedEncodingException
getContentsAsStringback to summary
public static String getContentsAsString(InputStream is, int max_len) throws IOException
getEmptyInputStreamback to summary
public static InputStream getEmptyInputStream()
skipFullyback to summary
public static void skipFully(InputStream is, long num_bytes) throws EOFException, IOException