Exemplo n.º 1
0
  @Override
  public int read(char[] cbuf, int off, int len) throws IOException {

    if (closed) {
      throw new IOException(sm.getString("inputBuffer.streamClosed"));
    }

    return cb.substract(cbuf, off, len);
  }
Exemplo n.º 2
0
  @Override
  public int read() throws IOException {

    if (closed) {
      throw new IOException(sm.getString("inputBuffer.streamClosed"));
    }

    return cb.substract();
  }