Package de.linusdev.lutils.http
Class HTTPRequestReader.LineReader
java.lang.Object
de.linusdev.lutils.http.HTTPRequestReader.LineReader
- Enclosing class:
HTTPRequestReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
eof
public boolean eofIndicates that no more can be read. Further read operations will return empty strings. -
eol
public boolean eolIndicates that the end of the line has been reached. Further read operations will read the next line.
-
-
Constructor Details
-
LineReader
public LineReader()
-
-
Method Details
-
readUntil
Reads until the first occurrence of the characterc, the end of the line or the end of the file. This method will set theeolandeofflags accordingly.- Parameters:
c- the character to which to read to- Returns:
- the String read, not containing
cor\r\n. - Throws:
IOException
-
readUntilLineFeed
Reads until the first occurrence of the character the end of the line or the end of the file. This method will set theeolandeofflags accordingly.- Returns:
- the String read, not containing
\r\n. - Throws:
IOException
-