public class InputStreamUtils extends Object
Constructor and Description |
---|
InputStreamUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
readLine(InputStream inputStream)
Read a line of bytes from an InputStream.
|
static byte[] |
readRawLine(InputStream inputStream)
Reads a raw line from an InputStream, up till \n.
|
public InputStreamUtils()
public static String readLine(InputStream inputStream) throws IOException
inputStream
- A source of dataIOException
- on trouble reading from input streampublic static byte[] readRawLine(InputStream inputStream) throws IOException
inputStream
- A stream to read from.IOException
- if the underlying reads failCopyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.