@Test(expected = IndexOutOfBoundsException.class) public void testWriteCharWithWrongCombineLength() throws IOException { UnsafeStringWriter writer = new UnsafeStringWriter(); char[] chars = new char[1]; writer.write(chars, 1, 1); }
@Override public void write(int c) { mBuffer.append((char) c); }
UnsafeStringWriter extends Writer { @Override public void write(int c) { mBuffer.append((char) c); } }
UnsafeStringWriter extends Writer { @Override public void write(int c) { mBuffer.append((char) c); } UnsafeStringWriter();  UnsafeStringWriter(int size); }
UnsafeStringWriter extends Writer { @Override public void write(int c) { mBuffer.append((char) c); } UnsafeStringWriter();  UnsafeStringWriter(int size); @Override void write(int c); @Override void write(char[] cs); @Override void write(char[] cs, int off, int len); @Override void write(String str); @Override void write(String str, int off, int len); @Override Writer append(CharSequence csq); @Override Writer append(CharSequence csq, int start, int end); @Override Writer append(char c); @Override void close(); @Override void flush(); @Override String toString(); }
UnsafeStringWriter extends Writer { @Override public void write(int c) { mBuffer.append((char) c); } UnsafeStringWriter();  UnsafeStringWriter(int size); @Override void write(int c); @Override void write(char[] cs); @Override void write(char[] cs, int off, int len); @Override void write(String str); @Override void write(String str, int off, int len); @Override Writer append(CharSequence csq); @Override Writer append(CharSequence csq, int start, int end); @Override Writer append(char c); @Override void close(); @Override void flush(); @Override String toString();  }