예제 #1
0
  @Override
  public int read(char[] cbuf, int off, int len) throws IOException {
    int count = super.read(cbuf, off, len);

    if (count > 0) {
      converter.convert(cbuf, off, count);
    }

    return count;
  }
예제 #2
0
  @Override
  public int read() throws IOException {
    int ch = super.read();

    if (ch < 0) {
      return ch;
    }

    return converter.convert((char) ch);
  }