Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 17 java.desktop.jmod - Desktop Module
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module.
JDK 17 Desktop module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.desktop.jmod.
JDK 17 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Desktop module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/imageio/plugins/tiff/TIFFJPEGDecompressor.java
/* * Copyright (c) 2005, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.imageio.plugins.tiff; import java.io.IOException; import java.io.ByteArrayInputStream; import java.util.Iterator; import javax.imageio.ImageIO; import javax.imageio.ImageReader; import javax.imageio.ImageReadParam; import javax.imageio.stream.MemoryCacheImageInputStream; import javax.imageio.stream.ImageInputStream; import javax.imageio.plugins.tiff.BaselineTIFFTagSet; import javax.imageio.plugins.tiff.TIFFField; public class TIFFJPEGDecompressor extends TIFFDecompressor { // Start of Image protected static final int SOI = 0xD8; // End of Image protected static final int EOI = 0xD9; protected ImageReader JPEGReader = null; protected ImageReadParam JPEGParam; protected boolean hasJPEGTables = false; protected byte[] tables = null; private byte[] data = new byte[0]; public TIFFJPEGDecompressor() {} public void beginDecoding() { // Initialize the JPEG reader if needed. if(this.JPEGReader == null) { // Get all JPEG readers. Iterator<ImageReader> iter = ImageIO.getImageReadersByFormatName("jpeg"); if(!iter.hasNext()) { throw new IllegalStateException("No JPEG readers found!"); } // Initialize reader to the first one. this.JPEGReader = iter.next(); this.JPEGParam = JPEGReader.getDefaultReadParam(); } // Get the JPEGTables field. TIFFImageMetadata tmetadata = (TIFFImageMetadata)metadata; TIFFField f = tmetadata.getTIFFField(BaselineTIFFTagSet.TAG_JPEG_TABLES); if (f != null) { this.hasJPEGTables = true; this.tables = f.getAsBytes(); } else { this.hasJPEGTables = false; } } public void decodeRaw(byte[] b, int dstOffset, int bitsPerPixel, int scanlineStride) throws IOException { // Seek to the data position for this segment. stream.seek(offset); // Set the stream variable depending on presence of JPEGTables. ImageInputStream is; if(this.hasJPEGTables) { // The current strip or tile is an abbreviated JPEG stream. // Reallocate memory if there is not enough already. int dataLength = tables.length + byteCount; if(data.length < dataLength) { data = new byte[dataLength]; } // Copy the tables ignoring any EOI and subsequent bytes. int dataOffset = tables.length; for(int i = tables.length - 2; i > 0; i--) { if((tables[i] & 0xff) == 0xff && (tables[i+1] & 0xff) == EOI) { dataOffset = i; break; } } System.arraycopy(tables, 0, data, 0, dataOffset); // Check for SOI and skip it if present. byte byte1 = (byte)stream.read(); byte byte2 = (byte)stream.read(); if(!((byte1 & 0xff) == 0xff && (byte2 & 0xff) == SOI)) { data[dataOffset++] = byte1; data[dataOffset++] = byte2; } // Read remaining data. stream.readFully(data, dataOffset, byteCount - 2); // Create ImageInputStream. ByteArrayInputStream bais = new ByteArrayInputStream(data); is = new MemoryCacheImageInputStream(bais); } else { // The current strip or tile is a complete JPEG stream. is = stream; } // Set the stream on the reader. JPEGReader.setInput(is, false, true); // Set the destination to the raw image ignoring the parameters. JPEGParam.setDestination(rawImage); // Read the strip or tile. JPEGReader.read(0, JPEGParam); } @SuppressWarnings("deprecation") protected void finalize() throws Throwable { super.finalize(); JPEGReader.dispose(); } }
⏎ com/sun/imageio/plugins/tiff/TIFFJPEGDecompressor.java
Or download all of them as a single archive file:
File name: java.desktop-17.0.5-src.zip File size: 9152233 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.instrument.jmod - Instrument Module
2023-09-16, 33170👍, 0💬
Popular Posts:
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers. Both...
commons-collections4-4.4 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module. JDK 11 HTTP Server module...
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
Oracle Business Intelligence (BI) Beans enables developers to productively build business intelligen...