.. index:: single: write_to_stream_hook(Stream)
.. _write_to_stream_hook/1:

.. rst-class:: right

**object**

``write_to_stream_hook(Stream)``
================================

This hook object writes term-expansion results to a stream in canonical format. The terms are terminated by a period and a new line.

| **Availability:** 
|    ``logtalk_load(hook_objects(loader))``

| **Author:** Paulo Moura
| **Version:** 1:0:0
| **Date:** 2020-02-16

| **Compilation flags:**
|    ``static, context_switching_calls``


| **Extends:**
|    ``public`` :ref:`write_to_stream_hook(Stream,[quoted(true),ignore_ops(true)]) <write_to_stream_hook/2>`

| **Remarks:**
|    (none)

| **Inherited public predicates:**
|     :ref:`expanding/0::goal_expansion/2`  :ref:`expanding/0::term_expansion/2`  

.. contents::
   :local:
   :backlinks: top

Public predicates
-----------------

(no local declarations; see entity ancestors if any)

Protected predicates
--------------------

(no local declarations; see entity ancestors if any)

Private predicates
------------------

(no local declarations; see entity ancestors if any)

Operators
---------

(none)

.. seealso::

   :ref:`backend_adapter_hook <backend_adapter_hook/0>`, :ref:`default_workflow_hook <default_workflow_hook/0>`, :ref:`identity_hook <identity_hook/0>`, :ref:`grammar_rules_hook <grammar_rules_hook/0>`, :ref:`prolog_module_hook(Module) <prolog_module_hook/1>`, :ref:`object_wrapper_hook <object_wrapper_hook/0>`, :ref:`write_to_stream_hook(Stream,Options) <write_to_stream_hook/2>`, :ref:`write_to_file_hook(File,Options) <write_to_file_hook/2>`, :ref:`write_to_file_hook(File) <write_to_file_hook/1>`, :ref:`print_goal_hook <print_goal_hook/0>`, :ref:`suppress_goal_hook <suppress_goal_hook/0>`

