MCPcopy Index your code
hub / github.com/davidgiven/luje / convert

Method convert

lib/java/io/OutputStreamWriter.java:246–260  ·  view source on GitHub ↗
(CharBuffer chars)

Source from the content-addressed store, hash-verified

244 }
245
246 private void convert(CharBuffer chars) throws IOException {
247 CoderResult result = encoder.encode(chars, bytes, true);
248 encoderFlush = true;
249 while (true) {
250 if (result.isError()) {
251 throw new IOException(result.toString());
252 } else if (result.isOverflow()) {
253 // flush the output buffer
254 flush();
255 result = encoder.encode(chars, bytes, true);
256 continue;
257 }
258 break;
259 }
260 }
261
262 /**
263 * Writes the character {@code oneChar} to this writer. The lowest two bytes

Callers 3

writeMethod · 0.95
toStringMethod · 0.45
toStringMethod · 0.45

Calls 5

isErrorMethod · 0.95
toStringMethod · 0.95
isOverflowMethod · 0.95
flushMethod · 0.95
encodeMethod · 0.45

Tested by

no test coverage detected