use of java.io.CharArrayWriter in project NoHttp by yanzhenjie.
the class IOUtils method toCharArray.
public static char[] toCharArray(InputStream input) throws IOException {
CharArrayWriter output = new CharArrayWriter();
write(input, output);
return output.toCharArray();
}
use of java.io.CharArrayWriter in project NoHttp by yanzhenjie.
the class IOUtils method toCharArray.
public static char[] toCharArray(Reader input) throws IOException {
CharArrayWriter output = new CharArrayWriter();
write(input, output);
return output.toCharArray();
}
use of java.io.CharArrayWriter in project NoHttp by yanzhenjie.
the class IOUtils method toCharArray.
public static char[] toCharArray(InputStream input, String encoding) throws IOException {
CharArrayWriter output = new CharArrayWriter();
write(input, output, encoding);
return output.toCharArray();
}
use of java.io.CharArrayWriter in project android_frameworks_base by ResurrectionRemix.
the class DiskInfo method toString.
@Override
public String toString() {
final CharArrayWriter writer = new CharArrayWriter();
dump(new IndentingPrintWriter(writer, " ", 80));
return writer.toString();
}
use of java.io.CharArrayWriter in project android_frameworks_base by ResurrectionRemix.
the class StorageVolume method dump.
/** {@hide} */
// TODO(b/26742218): find out where toString() is called internally and replace these calls by
// dump().
public String dump() {
final CharArrayWriter writer = new CharArrayWriter();
dump(new IndentingPrintWriter(writer, " ", 80));
return writer.toString();
}
Aggregations