Class OutputStreamControlTracker<T>
java.lang.Object
com.github.rvesse.airline.io.ControlTracker<T>
com.github.rvesse.airline.io.output.OutputStreamControlTracker<T>
-
Field Summary
FieldsFields inherited from class ControlTracker
provider -
Constructor Summary
ConstructorsConstructorDescriptionOutputStreamControlTracker(OutputStream output, ControlCodeSource<T> provider) OutputStreamControlTracker(OutputStream output, Charset charset, ControlCodeSource<T> provider) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyInternal(T value) Method that derived classes must implement to add the actual logic for applying the control to the streamprivate byte[]protected voidresetInternal(T value) Method that derived classes must implement to add the actual logic for resetting the control against the streamMethods inherited from class ControlTracker
apply, reset, set
-
Field Details
-
output
-
charset
-
-
Constructor Details
-
OutputStreamControlTracker
-
OutputStreamControlTracker
public OutputStreamControlTracker(OutputStream output, Charset charset, ControlCodeSource<T> provider)
-
-
Method Details
-
resetInternal
Description copied from class:ControlTrackerMethod that derived classes must implement to add the actual logic for resetting the control against the stream- Specified by:
resetInternalin classControlTracker<T>- Parameters:
value- Value to be reset from- Throws:
IOException
-
getBytes
-
applyInternal
Description copied from class:ControlTrackerMethod that derived classes must implement to add the actual logic for applying the control to the stream- Specified by:
applyInternalin classControlTracker<T>- Parameters:
value- Value to be applied- Throws:
IOException
-