}
public ContentStream createContentStream(String filename, long length, String mimetype, InputStream stream,
boolean partial) {
if (partial) {
return new PartialContentStreamImpl(filename, (length < 0 ? null : BigInteger.valueOf(length)), mimetype,
stream);
} else {
return new ContentStreamImpl(filename, (length < 0 ? null : BigInteger.valueOf(length)), mimetype, stream);
}
}