public static interface StreamDataSource.InputStreamProvider
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream()
Gets a newly allocated input stream.
|
java.lang.String |
getName()
Gets an appropriate name for the resource providing the input stream.
|
java.io.InputStream getInputStream() throws java.io.IOException
This method returns an InputStream representing the data and throws the appropriate exception if it can not do so.
NOTE: A new InputStream object must be returned each time this method is called, and the stream must be
positioned at the beginning of the data.
java.io.IOException
- If an I/O error occurs when allocating a new input stream.java.lang.String getName()