public abstract class InputStreamProvider extends Object implements Closeable
InputStreams.| Constructor and Description |
|---|
InputStreamProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getCurrentPath()
Returns the path about the current stream.
|
abstract boolean |
next()
Returns whether a next
InputStream exists,
and advances the current stream to the next one. |
abstract CountingInputStream |
openStream()
Returns the current stream.
|
public abstract boolean next()
throws IOException
InputStream exists,
and advances the current stream to the next one.
Note that the current stream should be closed by the client.true if the next InputStream exists, otherwise false.IOException - if failed to obtain next streampublic abstract String getCurrentPath()
IllegalStateException - if the current stream is not preparedpublic abstract CountingInputStream openStream() throws IOException
IOException - if failed to obtain the current streamIllegalStateException - if the current stream is not preparedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.