@Override public void close() throws IOException { flush(); } }
public void write(String s) throws IOException { if (s == null) out.write(CHARS_NULL); else write(s, 0, s.length()); }
UTF8WriterAppender(OutputStream out) { super(new UTF8Writer(out)); }
public void write(String s) throws IOException { if (s == null) out.write(CHARS_NULL); else write(s, 0, s.length()); }
@Override public void close() throws IOException { flush(); } }
@Override public void append(String s) { try { out.write(s); } catch (IOException e) { throw Unchecked.rethrow(e); } }
@Override public void append(int i) { try { out.write(i); } catch (IOException e) { throw Unchecked.rethrow(e); } }
@Override public void append(long l) { try { out.write(l); } catch (IOException e) { throw Unchecked.rethrow(e); } }
@Override public void append(boolean b) { try { out.write(b); } catch (IOException e) { throw Unchecked.rethrow(e); } } }
public void write(String s, int off, int l) throws IOException { int offset = StringReflection.offset(s) + off; char[] chars = StringReflection.chars(s); write(chars, offset, l); }
public void write(String s, int off, int l) throws IOException { int offset = StringReflection.offset(s) + off; char[] chars = StringReflection.chars(s); write(chars, offset, l); }