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

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

    return cb.substract();
  }