public interface StateListener
Modifier and Type | Method and Description |
---|---|
default void |
getState(OutputStream output)
Allows an application to write a state through a provided OutputStream.
|
default void |
setState(InputStream input)
Allows an application to read a state through a provided InputStream.
|
default void getState(OutputStream output) throws Exception
output
- the OutputStreamException
- if the streaming fails, any exceptions should be thrown so that the state requester
can re-throw them and let the caller know what happenedOutputStream.close()
default void setState(InputStream input) throws Exception
input
- the InputStreamException
- if the streaming fails, any exceptions should be thrown so that the state requester
can catch them and thus know what happenedInputStream.close()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.