From c654759d8ed4c31201c57331240f7eaedc88427f Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Fri, 23 Nov 2012 18:06:56 +0100 Subject: [PATCH] Added SHARED_... classes for encoders (html, url, xml, json, ...) --- library/text/encoder/src/shared_base64.e | 28 +++++++++++++++++++ .../text/encoder/src/shared_html_encoder.e | 28 +++++++++++++++++++ .../text/encoder/src/shared_json_encoder.e | 28 +++++++++++++++++++ library/text/encoder/src/shared_url_encoder.e | 28 +++++++++++++++++++ library/text/encoder/src/shared_xml_encoder.e | 28 +++++++++++++++++++ 5 files changed, 140 insertions(+) create mode 100644 library/text/encoder/src/shared_base64.e create mode 100644 library/text/encoder/src/shared_html_encoder.e create mode 100644 library/text/encoder/src/shared_json_encoder.e create mode 100644 library/text/encoder/src/shared_url_encoder.e create mode 100644 library/text/encoder/src/shared_xml_encoder.e diff --git a/library/text/encoder/src/shared_base64.e b/library/text/encoder/src/shared_base64.e new file mode 100644 index 00000000..9d8f1b61 --- /dev/null +++ b/library/text/encoder/src/shared_base64.e @@ -0,0 +1,28 @@ +note + description: "Objects to access the shared once BASE64 ..." + date: "$Date$" + revision: "$Revision$" + +class + SHARED_BASE64 + +feature -- Encoder + + base64_encoder: BASE64 + -- Shared BASE64 encoder. + once + create Result + end + +note + copyright: "2011-2012, Eiffel Software and others" + license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" + source: "[ + Eiffel Software + 5949 Hollister Ave., Goleta, CA 93117 USA + Telephone 805-685-1006, Fax 805-685-6869 + Website http://www.eiffel.com + Customer support http://support.eiffel.com + ]" + +end diff --git a/library/text/encoder/src/shared_html_encoder.e b/library/text/encoder/src/shared_html_encoder.e new file mode 100644 index 00000000..ad0ae820 --- /dev/null +++ b/library/text/encoder/src/shared_html_encoder.e @@ -0,0 +1,28 @@ +note + description: "Objects to access the shared once HTML_ENCODER ..." + date: "$Date$" + revision: "$Revision$" + +class + SHARED_HTML_ENCODER + +feature -- Encoder + + html_encoder: HTML_ENCODER + -- Shared HTML encoder. + once + create Result + end + +note + copyright: "2011-2012, Eiffel Software and others" + license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" + source: "[ + Eiffel Software + 5949 Hollister Ave., Goleta, CA 93117 USA + Telephone 805-685-1006, Fax 805-685-6869 + Website http://www.eiffel.com + Customer support http://support.eiffel.com + ]" + +end diff --git a/library/text/encoder/src/shared_json_encoder.e b/library/text/encoder/src/shared_json_encoder.e new file mode 100644 index 00000000..10c585f2 --- /dev/null +++ b/library/text/encoder/src/shared_json_encoder.e @@ -0,0 +1,28 @@ +note + description: "Objects to access the shared once JSON_ENCODER ..." + date: "$Date$" + revision: "$Revision$" + +class + SHARED_JSON_ENCODER + +feature -- Encoder + + json_encoder: JSON_ENCODER + -- Shared JSON encoder. + once + create Result + end + +note + copyright: "2011-2012, Eiffel Software and others" + license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" + source: "[ + Eiffel Software + 5949 Hollister Ave., Goleta, CA 93117 USA + Telephone 805-685-1006, Fax 805-685-6869 + Website http://www.eiffel.com + Customer support http://support.eiffel.com + ]" + +end diff --git a/library/text/encoder/src/shared_url_encoder.e b/library/text/encoder/src/shared_url_encoder.e new file mode 100644 index 00000000..0e3b0dbf --- /dev/null +++ b/library/text/encoder/src/shared_url_encoder.e @@ -0,0 +1,28 @@ +note + description: "Objects to access the shared once URL_ENCODER ..." + date: "$Date$" + revision: "$Revision$" + +class + SHARED_URL_ENCODER + +feature -- Encoder + + url_encoder: URL_ENCODER + -- Shared URL encoder. + once + create Result + end + +note + copyright: "2011-2012, Eiffel Software and others" + license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" + source: "[ + Eiffel Software + 5949 Hollister Ave., Goleta, CA 93117 USA + Telephone 805-685-1006, Fax 805-685-6869 + Website http://www.eiffel.com + Customer support http://support.eiffel.com + ]" + +end diff --git a/library/text/encoder/src/shared_xml_encoder.e b/library/text/encoder/src/shared_xml_encoder.e new file mode 100644 index 00000000..f9ec67e6 --- /dev/null +++ b/library/text/encoder/src/shared_xml_encoder.e @@ -0,0 +1,28 @@ +note + description: "Objects to access the shared once XML_ENCODER ..." + date: "$Date$" + revision: "$Revision$" + +class + SHARED_XML_ENCODER + +feature -- Encoder + + xml_encoder: XML_ENCODER + -- Shared XML encoder. + once + create Result + end + +note + copyright: "2011-2012, Eiffel Software and others" + license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" + source: "[ + Eiffel Software + 5949 Hollister Ave., Goleta, CA 93117 USA + Telephone 805-685-1006, Fax 805-685-6869 + Website http://www.eiffel.com + Customer support http://support.eiffel.com + ]" + +end