/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*-
* Reads JPEG images from an InputStream and reports the
* image data to an InputStreamImageSource object.
*
* The native implementation of the JPEG image decoder was adapted from
* release 6 of the free JPEG software from the Independent JPEG Group.
*/
/**
* JPEG Image converter
*
* @author Jim Graham
*/
static {
byte g[] = new byte[256];
for (int i = 0; i < 256; i++) {
g[i] = (byte) i;
}
}
throws ImageFormatException, IOException;
}
/**
* An error has occurred. Throw an exception.
*/
throw new ImageFormatException(s1);
}
boolean multipass)
{
if (gray) {
} else {
if (hasalpha) {
} else {
}
}
if (!multipass) {
}
return true;
}
if (count <= 0) {
aborted = true;
}
return !aborted;
}
if (count <= 0) {
aborted = true;
}
return !aborted;
}
/**
* produce an image from the stream.
*/
try {
if (!aborted) {
}
} catch (IOException e) {
if (!aborted) {
throw e;
}
} finally {
close();
}
}
/**
* The ImageConsumer hints flag for a JPEG image.
*/
private static final int hintflags =
}