MCPcopy Index your code
hub / github.com/aofeng/JavaTutorial / getLineContent

Method getLineContent

src/cn/aofeng/demo/nio/NioEchoServer.java:84–92  ·  view source on GitHub ↗

去掉尾末的行结束符(\r\n),并转换成字符串。 @param buffer 字节缓冲区 @return 返回去掉行结束符后的字符串。 @throws UnsupportedEncodingException @see #convert2String(ByteBuffer)

(ByteBuffer buffer)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

readDataMethod · 0.95

Calls 1

convert2StringMethod · 0.95

Tested by

no test coverage detected