bridge patter update

This commit is contained in:
Volodymyr Karpenko 2022-10-26 17:25:06 +02:00
parent 5f4cd01b32
commit a1461ae81b
2 changed files with 5 additions and 0 deletions

Binary file not shown.

View file

@ -568,6 +568,11 @@ and is particularly relevant to have this abstraction because there are differen
For example on unix systems the escape sequence is ``\textbackslash n'', For example on unix systems the escape sequence is ``\textbackslash n'',
where on Microsoft operating systems the escape sequence is ``\textbackslash r\textbackslash n'' where on Microsoft operating systems the escape sequence is ``\textbackslash r\textbackslash n''
and on IBM mainframe systems the escape sequence is ``\textbackslash 025''. and on IBM mainframe systems the escape sequence is ``\textbackslash 025''.
The class \textbf{json.JsonGeneratorImpl} is then extended by \textbf{json.WriterBasedJsonGenerator} and
\textbf{json.UTF8JsonGenerator}.
For the \textbf{json.WriterBasedJsonGenerator} class uses \textbf{Java.io.Writer},
so the the system automatically handles character encoding.
For the \textbf{json.UTF8JsonGenerator} the character encoding need to be managed manually because it works on an output stream.
\section{Behavioral Patterns} \section{Behavioral Patterns}