public class InputStreams
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
readFully(java.io.InputStream input)
Reads the input stream completely, and closes it.
|
static java.lang.String |
readUTF(java.io.InputStream input)
Reads the input stream completely and decodes it to a string using
UTF-8 character encoding.
|
public static byte[] readFully(java.io.InputStream input)
input - input stream to readpublic static java.lang.String readUTF(java.io.InputStream input)
input - input stream to read