- maybeInstall
- current
Returns the currently registered streams.
- deregister
Re-register streams for the current thread, and restore the previous if any.
- ensureInstalled
- install
Install the hijacker and register streams for the current thread.
- isInstalled
Check if the hijacker has been installed.
- isRegistered
Check if there are streams registered for the current thread.
- register
Register streams for the current thread.
- registration
Get the current stream registration.
- restore
Restores the System streams to the given pair and resets the hijacker state to
un-installed.