Java Utililty Methods InputStream to Char Array

List of utility methods to do InputStream to Char Array

  1. HOME
  2. Java
  3. I
  4. 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 {
...

AltStyle によって変換されたページ (->オリジナル) /