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

Method write

lib/java/io/OutputStreamWriter.java:234–244  ·  view source on GitHub ↗

Writes count characters starting at offset in buf to this writer. The characters are immediately converted to bytes by the character converter and stored in a local buffer. If the buffer gets full as a result of the conversion, this writer is flushed. @param buf t

(char[] buf, int offset, int count)

Source from the content-addressed store, hash-verified

232 * occurs.
233 */
234 @Override
235 public void write(char[] buf, int offset, int count) throws IOException {
236 synchronized (lock) {
237 checkStatus();
238 if (offset < 0 || offset > buf.length - count || count < 0) {
239 throw new IndexOutOfBoundsException();
240 }
241 CharBuffer chars = CharBuffer.wrap(buf, offset, count);
242 convert(chars);
243 }
244 }
245
246 private void convert(CharBuffer chars) throws IOException {
247 CoderResult result = encoder.encode(chars, bytes, true);

Callers

nothing calls this directly

Calls 4

checkStatusMethod · 0.95
wrapMethod · 0.95
convertMethod · 0.95
lengthMethod · 0.65

Tested by

no test coverage detected