Template for a custom input stream.