public static interface DataSource.StreamOpener
Modifier and Type | Method and Description |
---|---|
InputStream |
openOnce()
Open the stream once.
|
InputStream openOnce() throws IOException
Beware that this interface is only intended for lazy opening a stream, i.e. to delay this opening (or not open the stream at all). It is not intended to open the stream several times. Some implementations may fail if an attempt to open a stream several times is made. This is particularly true for network-based streams.
IOException
- if stream cannot be openedCopyright © 2002-2022 CS GROUP. All rights reserved.