Module io.jstach.jstachio
Package io.jstach.jstachio.output
Interface OutputFactory<T,E extends Exception>
- Type Parameters:
T
- the output typeE
- the exception type that can be thrown on creation.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Creates output like objects with a buffer size. Some consumers of this factory may have
different semantics on the buffer size parameter but in general
-1
means
the buffer size is unknown.- Author:
- agent
-
Method Summary
-
Method Details
-
create
Create the output type- Parameters:
bufferSize
- buffer size if unknown maybe-1
- Returns:
- created output
- Throws:
E
- if any error creating output
-