@Override public int read(byte[] b) throws IOException { return read(b, 0, b.length); }
public StandardDataPacket(final Map<String, String> attributes, final InputStream stream, final long size) { this.attributes = attributes; this.stream = new MinimumLengthInputStream(new LimitingInputStream(stream, size), size); this.size = size; }
@Override public int read(byte[] b) throws IOException { return read(b, 0, b.length); }