Module org.refcodes.mixin
Package org.refcodes.mixin
Interface OutputStreamAccessor.OutputStreamProperty
- All Superinterfaces:
OutputStreamAccessor
,OutputStreamAccessor.OutputStreamMutator
- Enclosing interface:
- OutputStreamAccessor
public static interface OutputStreamAccessor.OutputStreamProperty extends OutputStreamAccessor, OutputStreamAccessor.OutputStreamMutator
Provides an output stream property.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.mixin.OutputStreamAccessor
OutputStreamAccessor.OutputStreamBuilder<B extends OutputStreamAccessor.OutputStreamBuilder<?>>, OutputStreamAccessor.OutputStreamMutator, OutputStreamAccessor.OutputStreamProperty
-
Method Summary
Modifier and Type Method Description default OutputStream
letOutputStream(OutputStream aOutputStream)
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenOutputStream
(setter) as ofOutputStreamAccessor.OutputStreamMutator.setOutputStream(OutputStream)
and returns the very same value (getter).Methods inherited from interface org.refcodes.mixin.OutputStreamAccessor
getOutputStream
Methods inherited from interface org.refcodes.mixin.OutputStreamAccessor.OutputStreamMutator
setOutputStream
-
Method Details
-
letOutputStream
This method stores and passes through the given argument, which is very useful for builder APIs: Sets the givenOutputStream
(setter) as ofOutputStreamAccessor.OutputStreamMutator.setOutputStream(OutputStream)
and returns the very same value (getter).- Parameters:
aOutputStream
- TheOutputStream
to set (viaOutputStreamAccessor.OutputStreamMutator.setOutputStream(OutputStream)
).- Returns:
- Returns the value passed for it to be used in conclusive processing steps.
-