public class ManInputStreamExt extends Object
Constructor and Description |
---|
ManInputStreamExt() |
Modifier and Type | Method and Description |
---|---|
static BufferedReader |
bufferedReader(InputStream thiz)
Creates a buffered reader on this input stream using UTF-8 or the specified
charset . |
static BufferedReader |
bufferedReader(InputStream thiz,
Charset charset) |
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.
|
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.
|
static InputStreamReader |
reader(InputStream thiz)
Creates a reader on this input stream using UTF-8 or the specified
charset . |
static InputStreamReader |
reader(InputStream thiz,
Charset charset) |
public static InputStreamReader reader(InputStream thiz)
charset
.public static InputStreamReader reader(InputStream thiz, Charset charset)
public static BufferedReader bufferedReader(InputStream thiz)
charset
.public static BufferedReader bufferedReader(InputStream thiz, Charset charset)
public static long copyTo(InputStream thiz, OutputStream out)
**Note** It is the caller's responsibility to close both of these resources.
public static long copyTo(InputStream thiz, OutputStream out, int bufferSize)
**Note** It is the caller's responsibility to close both of these resources.
Copyright © 2024. All rights reserved.