Lines Matching refs:contentLength
78 private long contentLength;
95 * @param contentLength The maximum number of bytes that can be read from
98 public ContentLengthInputStream(final SessionInputBuffer in, long contentLength) {
103 if (contentLength < 0) {
107 this.contentLength = contentLength;
143 if (pos >= contentLength) {
167 if (pos >= contentLength) {
171 if (pos + len > contentLength) {
172 len = (int) (contentLength - pos);
206 long remaining = Math.min(n, this.contentLength - this.pos);