src/share/classes/javax/imageio/stream/ImageInputStream.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1999, 2010, 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) 1999, 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
*** 444,454 ****
* of the bytes to be read), or if byte <code>b</code> does not
* match the bit pattern <code>10xxxxxx</code>, then a
* <code>UTFDataFormatException</code> is thrown. Otherwise, the
* group is converted to the character:
*
! * <p> <pre><code>
* (char)(((a& 0x1F) << 6) | (b & 0x3F))
* </code></pre>
*
* If the first byte of a group matches the bit pattern
* <code>1110xxxx</code>, then the group consists of that byte
--- 444,454 ----
* of the bytes to be read), or if byte <code>b</code> does not
* match the bit pattern <code>10xxxxxx</code>, then a
* <code>UTFDataFormatException</code> is thrown. Otherwise, the
* group is converted to the character:
*
! * <pre><code>
* (char)(((a& 0x1F) << 6) | (b & 0x3F))
* </code></pre>
*
* If the first byte of a group matches the bit pattern
* <code>1110xxxx</code>, then the group consists of that byte
*** 458,468 ****
* read), or either byte <code>b</code> or byte <code>c</code>
* does not match the bit pattern <code>10xxxxxx</code>, then a
* <code>UTFDataFormatException</code> is thrown. Otherwise, the
* group is converted to the character:
*
! * <p> <pre><code>
* (char)(((a & 0x0F) << 12) | ((b & 0x3F) << 6) | (c & 0x3F))
* </code></pre>
*
* If the first byte of a group matches the pattern
* <code>1111xxxx</code> or the pattern <code>10xxxxxx</code>,
--- 458,468 ----
* read), or either byte <code>b</code> or byte <code>c</code>
* does not match the bit pattern <code>10xxxxxx</code>, then a
* <code>UTFDataFormatException</code> is thrown. Otherwise, the
* group is converted to the character:
*
! * <pre><code>
* (char)(((a & 0x0F) << 12) | ((b & 0x3F) << 6) | (c & 0x3F))
* </code></pre>
*
* If the first byte of a group matches the pattern
* <code>1111xxxx</code> or the pattern <code>10xxxxxx</code>,