MCPcopy Create free account
hub / github.com/ReadyTalk/avian / readLine

Method readLine

classpath/java/io/DataInputStream.java:106–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 }
105
106 @Deprecated
107 public String readLine() throws IOException {
108 int c = read();
109 if (c < 0) {
110 return null;
111 } else if (c == '\n') {
112 return "";
113 }
114 StringBuilder builder = new StringBuilder();
115 for (;;) {
116 builder.append((char)c);
117 c = read();
118 if (c < 0 || c == '\n') {
119 return builder.toString();
120 }
121 }
122 }
123
124 public int skipBytes(int n) throws IOException {
125 for (int count = 0; count < n; ++count) {

Callers

nothing calls this directly

Calls 3

readMethod · 0.95
appendMethod · 0.95
toStringMethod · 0.95

Tested by

no test coverage detected