class StreamSource extends AbstractSource<InputStream> {

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

    private  StreamSource(InputStream stream, String name);

}