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 11 java.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\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-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, 160056👍, 5💬
Popular Posts:
How to display XML element type information with the jaxp\TypeInfoWriter.java provided in the Apache...
io.jar is a component in iText Java library to provide input/output functionalities. iText Java libr...
JSP(tm) Standard Tag Library 1.1 implementation - Jakarta Taglibs hosts the Standard Taglib 1.1, an ...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
Apache Log4j Core Implementation provides the functional components of the logging system. Users are...