This is a class which takes input characters and writes to the given print stream. This class is thread safe.