Class ManInputStreamExt
- java.lang.Object
-
- manifold.io.extensions.java.io.InputStream.ManInputStreamExt
-
public class ManInputStreamExt extends Object
-
-
Constructor Summary
Constructors Constructor Description ManInputStreamExt()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferedReaderbufferedReader(InputStream thiz)Creates a buffered reader on this input stream using UTF-8 or the specifiedcharset.static BufferedReaderbufferedReader(InputStream thiz, Charset charset)static longcopyTo(InputStream thiz, OutputStream out)Copies this stream to the given output stream, returning the number of bytes copiedstatic longcopyTo(InputStream thiz, OutputStream out, int bufferSize)Copies this stream to the given output stream, returning the number of bytes copiedstatic InputStreamReaderreader(InputStream thiz)Creates a reader on this input stream using UTF-8 or the specifiedcharset.static InputStreamReaderreader(InputStream thiz, Charset charset)
-
-
-
Method Detail
-
reader
public static InputStreamReader reader(InputStream thiz)
Creates a reader on this input stream using UTF-8 or the specifiedcharset.
-
reader
public static InputStreamReader reader(InputStream thiz, Charset charset)
-
bufferedReader
public static BufferedReader bufferedReader(InputStream thiz)
Creates a buffered reader on this input stream using UTF-8 or the specifiedcharset.
-
bufferedReader
public static BufferedReader bufferedReader(InputStream thiz, Charset charset)
-
copyTo
public static long copyTo(InputStream thiz, OutputStream out)
Copies this stream to the given output stream, returning the number of bytes copied**Note** It is the caller's responsibility to close both of these resources.
-
copyTo
public static long copyTo(InputStream thiz, OutputStream out, int bufferSize)
Copies this stream to the given output stream, returning the number of bytes copied**Note** It is the caller's responsibility to close both of these resources.
-
-