public class EngineUtil extends Object
| Constructor and Description |
|---|
EngineUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
readChars(InputStream inputStream,
int len)
Read a certain amount of characters from the stream.
|
static String |
readLine(InputStream inputStream)
Read until '\n' and returns it as a string.
|
protected static Properties |
readResponseHeaders(InputStream inputStream)
Read headers from a response.
|
public static String readLine(InputStream inputStream) throws IOException
inputStream - The input stream to read from.IOExceptionpublic static String readChars(InputStream inputStream, int len) throws IOException
inputStream - The input stream to read from.len - The amount of characters to read.IOExceptionprotected static Properties readResponseHeaders(InputStream inputStream) throws IOException
inputStream - The input stream to read from.Properties.IOExceptionCopyright © 2004–2017. All rights reserved.