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(BufferedInputStream inputStream)
Read headers from a response.
|
public static String readLine(InputStream inputStream) throws IOException
inputStream
- The input stream to read from.IOException
public static String readChars(InputStream inputStream, int len) throws IOException
inputStream
- The input stream to read from.len
- The amount of characters to read.IOException
protected static Properties readResponseHeaders(BufferedInputStream inputStream) throws IOException
inputStream
- The input stream to read from.Properties
.IOException
Copyright © 2017. All rights reserved.