Java Utililty Methods InputStream to Char Array

List of utility methods to do InputStream to Char Array

Description

The list of methods to do InputStream to Char Array are organized into topic(s).

Method

char[]getInputStreamAsCharArray(InputStream stream, int length, String encoding)
Returns the given input stream's contents as a character array.
final InputStreamReader reader = encoding == null ? new InputStreamReader(stream)
        : new InputStreamReader(stream, encoding);
try {
    char[] contents;
    if (length == -1) {
        contents = new char[0];
        int contentsLength = 0;
        int charsRead = -1;
...
char[]getInputStreamAsCharArray(InputStream stream, int length, String encoding)
get Input Stream As Char Array
InputStreamReader reader = null;
reader = encoding == null ? new InputStreamReader(stream) : new InputStreamReader(stream, encoding);
char[] contents;
if (length == -1) {
    contents = new char[0];
    int contentsLength = 0;
    int amountRead = -1;
    do {
...