/** * Creates a new stream resource for downloading from stream. * * @param streamSource * the source Stream. * @param filename * the name of the file. */ public StreamResource(StreamSource streamSource, String filename) { setFilename(filename); setStreamSource(streamSource); }