Module com.github.rvesse.airline.io
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 com.github.rvesse.airline.io.ControlTracker
provider
-
Constructor Summary
ConstructorsConstructorDescriptionOutputStreamControlTracker
(OutputStream output, ControlCodeSource<T> provider) OutputStreamControlTracker
(OutputStream output, Charset charset, ControlCodeSource<T> provider) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyInternal
(T value) Method that derived classes must implement to add the actual logic for applying the control to the streamprivate byte[]
protected void
resetInternal
(T value) Method that derived classes must implement to add the actual logic for resetting the control against the streamMethods inherited from class com.github.rvesse.airline.io.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:ControlTracker
Method that derived classes must implement to add the actual logic for resetting the control against the stream- Specified by:
resetInternal
in classControlTracker<T>
- Parameters:
value
- Value to be reset from- Throws:
IOException
-
getBytes
-
applyInternal
Description copied from class:ControlTracker
Method that derived classes must implement to add the actual logic for applying the control to the stream- Specified by:
applyInternal
in classControlTracker<T>
- Parameters:
value
- Value to be applied- Throws:
IOException
-