コード例 #1
0
ファイル: InputBuffer.java プロジェクト: dorisxt/tomcat7.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);
  }
コード例 #2
0
ファイル: InputBuffer.java プロジェクト: dorisxt/tomcat7.0
  @Override
  public int read() throws IOException {

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

    return cb.substract();
  }