Esempio 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);
  }
Esempio n. 2
0
  @Override
  public int read() throws IOException {

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

    return cb.substract();
  }