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/TIFFCompressor.java
/* * Copyright (c) 2005, 2016, 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 javax.imageio.ImageWriter; import javax.imageio.metadata.IIOMetadata; import javax.imageio.stream.ImageOutputStream; /** * An abstract superclass for pluggable TIFF compressors. */ public abstract class TIFFCompressor { /** * The {@code ImageWriter} calling this * {@code TIFFCompressor}. */ protected ImageWriter writer; /** * The {@code IIOMetadata} object containing metadata for the * current image. */ protected IIOMetadata metadata; /** * The name of the compression type supported by this compressor. */ protected String compressionType; /** * The value to be assigned to the TIFF <i>Compression</i> tag in the * TIFF image metadata. */ protected int compressionTagValue; /** * Whether the compression is lossless. */ protected boolean isCompressionLossless; /** * The {@code ImageOutputStream} to be written. */ protected ImageOutputStream stream; /** * Creates a compressor object for use in compressing TIFF data. * * <p>The parameters {@code compressionTagValue} and * {@code isCompressionLossless} are provided to accomodate * compression types which are unknown. A compression type is * "known" if it is either among those already supported by the * TIFF writer (see {@link TIFFImageWriteParam}), or is listed in * the TIFF 6.0 specification but not supported. If the compression * type is unknown, the {@code compressionTagValue} and * {@code isCompressionLossless} parameters are ignored.</p> * * @param compressionType The name of the compression type. * @param compressionTagValue The value to be assigned to the TIFF * <i>Compression</i> tag in the TIFF image metadata; ignored if * {@code compressionType} is a known type. * @param isCompressionLossless Whether the compression is lossless; * ignored if {@code compressionType} is a known type. * * @throws NullPointerException if {@code compressionType} is * {@code null}. * @throws IllegalArgumentException if {@code compressionTagValue} is * less {@code 1}. */ public TIFFCompressor(String compressionType, int compressionTagValue, boolean isCompressionLossless) { if(compressionType == null) { throw new NullPointerException("compressionType == null"); } else if(compressionTagValue < 1) { throw new IllegalArgumentException("compressionTagValue < 1"); } // Set the compression type. this.compressionType = compressionType; // Determine whether this type is either defined in the TIFF 6.0 // specification or is already supported. int compressionIndex = -1; String[] compressionTypes = TIFFImageWriter.compressionTypes; int len = compressionTypes.length; for(int i = 0; i < len; i++) { if(compressionTypes[i].equals(compressionType)) { // Save the index of the supported type. compressionIndex = i; break; } } if(compressionIndex != -1) { // Known compression type. this.compressionTagValue = TIFFImageWriter.compressionNumbers[compressionIndex]; this.isCompressionLossless = TIFFImageWriter.isCompressionLossless[compressionIndex]; } else { // Unknown compression type. this.compressionTagValue = compressionTagValue; this.isCompressionLossless = isCompressionLossless; } } /** * Retrieve the name of the compression type supported by this compressor. * * @return The compression type name. */ public String getCompressionType() { return compressionType; } /** * Retrieve the value to be assigned to the TIFF <i>Compression</i> tag * in the TIFF image metadata. * * @return The <i>Compression</i> tag value. */ public int getCompressionTagValue() { return compressionTagValue; } /** * Retrieves a value indicating whether the compression is lossless. * * @return Whether the compression is lossless. */ public boolean isCompressionLossless() { return isCompressionLossless; } /** * Sets the {@code ImageOutputStream} to be written. * * @param stream an {@code ImageOutputStream} to be written. * * @see #getStream */ public void setStream(ImageOutputStream stream) { this.stream = stream; } /** * Returns the {@code ImageOutputStream} that will be written. * * @return an {@code ImageOutputStream}. * * @see #setStream(ImageOutputStream) */ public ImageOutputStream getStream() { return stream; } /** * Sets the value of the {@code writer} field. * * @param writer the current {@code ImageWriter}. * * @see #getWriter() */ public void setWriter(ImageWriter writer) { this.writer = writer; } /** * Returns the current {@code ImageWriter}. * * @return an {@code ImageWriter}. * * @see #setWriter(ImageWriter) */ public ImageWriter getWriter() { return this.writer; } /** * Sets the value of the {@code metadata} field. * * @param metadata the {@code IIOMetadata} object for the * image being written. * * @see #getMetadata() */ public void setMetadata(IIOMetadata metadata) { this.metadata = metadata; } /** * Returns the current {@code IIOMetadata} object. * * @return the {@code IIOMetadata} object for the image being * written. * * @see #setMetadata(IIOMetadata) */ public IIOMetadata getMetadata() { return this.metadata; } /** * Encodes the supplied image data, writing to the currently set * {@code ImageOutputStream}. * * @param b an array of {@code byte}s containing the packed * but uncompressed image data. * @param off the starting offset of the data to be written in the * array {@code b}. * @param width the width of the rectangle of pixels to be written. * @param height the height of the rectangle of pixels to be written. * @param bitsPerSample an array of {@code int}s indicting * the number of bits used to represent each image sample within * a pixel. * @param scanlineStride the number of bytes separating each * row of the input data. * * @return the number of bytes written. * * @throws IOException if the supplied data cannot be encoded by * this {@code TIFFCompressor}, or if any I/O error occurs * during writing. */ public abstract int encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) throws IOException; }
⏎ com/sun/imageio/plugins/tiff/TIFFCompressor.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, 159655👍, 5💬
Popular Posts:
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
commons-io-1.4.jar is the JAR file for Commons IO 1.4, which is a library of utilities to assist wit...
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
JSP(tm) Standard Tag Library 1.1 implementation - Jakarta Taglibs hosts the Standard Taglib 1.1, an ...
Apache Ant is a Java-based build tool. In theory, it is kind of like make, without make's wrinkles. ...