MCPcopy Create free account
hub / github.com/curtcox/JLHTTP / readLine

Method readLine

src/main/java/net/freeutils/httpserver/HTTPServer.java:2778–2780  ·  view source on GitHub ↗

Reads the ISO-8859-1 encoded string starting at the current stream position and ending at the first occurrence of the LF character. @param in the stream from which the line is read @return the read string, excluding the terminating LF character and (if exists) the CR character immediately p

(InputStream in)

Source from the content-addressed store, hash-verified

2776 * @see #readToken(InputStream, int, String, int)
2777 */
2778 public static String readLine(InputStream in) throws IOException {
2779 return readToken(in, '\n', "ISO8859_1", 8192);
2780 }
2781
2782 /**
2783 * Reads headers from the given stream. Headers are read according to the

Callers 4

addContentTypesMethod · 0.95
readHeadersMethod · 0.95
initChunkMethod · 0.80
readRequestLineMethod · 0.80

Calls 1

readTokenMethod · 0.95

Tested by

no test coverage detected