/** * Returns an {@code InputStream} to a serialized version of the {@code dcp}. * * @param dcp the package in DCP format * @return an {@code InputStream} to the serialized package */ public InputStream buildSip(Dcp dcp) { Assertion.notNull(dcp); ByteArrayOutputStream sink = new ByteArrayOutputStream(8192); buildSip(dcp, sink); return new ByteArrayInputStream(sink.toByteArray()); }