Home | History | Annotate | Download | only in mail

Lines Matching refs:length

22  * A filtering InputStream that stops allowing reads after the given length has been read. This is
28 private final int length;
31 public FixedLengthInputStream(InputStream in, int length) {
33 this.length = length;
38 return length - count;
43 if (count < length) {
52 public int read(byte[] b, int offset, int length) throws IOException {
53 if (count < this.length) {
54 int d = in.read(b, offset, Math.min(this.length - count, length));
68 return read(b, 0, b.length);
72 return length;
77 return String.format("FixedLengthInputStream(in=%s, length=%d)", in.toString(), length);