/** * @param in the data source or {@code null}. * @param buf the initial buffer or {@code null}. */ public Unmarshaller(InputStream in, byte[] buf) { // TODO: better size estimation if (buf == null || buf.length == 0) buf = new byte[Math.min(Span.colferSizeMax, 2048)]; this.buf = buf; reset(in); }
/** * @param in the data source or {@code null}. * @param buf the initial buffer or {@code null}. */ public Unmarshaller(InputStream in, byte[] buf) { // TODO: better size estimation if (buf == null || buf.length == 0) buf = new byte[Math.min(Span.colferSizeMax, 2048)]; this.buf = buf; reset(in); }