|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.utils.InputStreamUtils
public class InputStreamUtils
This class provides various utilities for inputstreams.
Constructor Summary | |
---|---|
InputStreamUtils()
|
Method Summary | |
---|---|
static java.lang.String |
readLine(java.io.InputStream inputStream)
Read a line of bytes from an InputStream. |
static byte[] |
readRawLine(java.io.InputStream inputStream)
Reads a raw line from an InputStream, up till \n. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputStreamUtils()
Method Detail |
---|
public static java.lang.String readLine(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- A source of data
java.io.IOException
- on trouble reading from input streampublic static byte[] readRawLine(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- A stream to read from.
java.io.IOException
- if the underlying reads fail
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |