class PdfStreamSource extends AbstractPdfSource<InputStream> {

    public static PdfStreamSource newInstanceWithPassword(InputStream stream, String name, String password) {
        if (stream == null) {
            throw new IllegalArgumentException("A not null stream instance and a not blank name are expected.");
        }
        return new PdfStreamSource(stream, name, password);
    }

    private  PdfStreamSource(InputStream stream, String name, String password);

}