Class LineReader
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.globus.util.http.LineReader
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Field Summary
FieldsFields inherited from class FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintreadLine()protected StringreadLine(InputStream in) Read a line of text from the given Stream and return it as a String.Methods inherited from class FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skipMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
MAX_LEN
private static final int MAX_LEN- See Also:
-
_charsRead
protected int _charsRead
-
-
Constructor Details
-
LineReader
-
-
Method Details
-
getInputStream
-
getCharsRead
public int getCharsRead() -
readLine
- Throws:
IOException
-
readLine
Read a line of text from the given Stream and return it as a String. Assumes lines end in CRLF.- Parameters:
in- a connected stream which contains the entire message being sen.- Returns:
- the next line read from the stream.
- Throws:
IOException- if a connection fails or abnormal connection termination.
-