src/share/classes/javax/imageio/stream/ImageOutputStream.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2000, 2007, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 377,405 ****
*
* <p> If a character <code>c</code> is in the range
* <code>\u0001</code> through <code>\u007f</code>, it is
* represented by one byte:
*
! * <p><pre>
* (byte)c
* </pre>
*
* <p> If a character <code>c</code> is <code>\u0000</code> or
* is in the range <code>\u0080</code> through
* <code>\u07ff</code>, then it is represented by two bytes,
* to be written in the order shown:
*
! * <p> <pre><code>
* (byte)(0xc0 | (0x1f & (c >> 6)))
* (byte)(0x80 | (0x3f & c))
* </code></pre>
*
* <p> If a character <code>c</code> is in the range
* <code>\u0800</code> through <code>uffff</code>, then it is
* represented by three bytes, to be written in the order shown:
*
! * <p> <pre><code>
* (byte)(0xe0 | (0x0f & (c >> 12)))
* (byte)(0x80 | (0x3f & (c >> 6)))
* (byte)(0x80 | (0x3f & c))
* </code></pre>
*
--- 377,405 ----
*
* <p> If a character <code>c</code> is in the range
* <code>\u0001</code> through <code>\u007f</code>, it is
* represented by one byte:
*
! * <pre>
* (byte)c
* </pre>
*
* <p> If a character <code>c</code> is <code>\u0000</code> or
* is in the range <code>\u0080</code> through
* <code>\u07ff</code>, then it is represented by two bytes,
* to be written in the order shown:
*
! * <pre><code>
* (byte)(0xc0 | (0x1f & (c >> 6)))
* (byte)(0x80 | (0x3f & c))
* </code></pre>
*
* <p> If a character <code>c</code> is in the range
* <code>\u0800</code> through <code>uffff</code>, then it is
* represented by three bytes, to be written in the order shown:
*
! * <pre><code>
* (byte)(0xe0 | (0x0f & (c >> 12)))
* (byte)(0x80 | (0x3f & (c >> 6)))
* (byte)(0x80 | (0x3f & c))
* </code></pre>
*