| Modifier and Type | Class and Description |
|---|---|
| private static class | TIFFBaseJPEGCompressor.
A |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private TIFFBaseJPEGCompressor. | |
| protected static final String | |
| private IIOMetadata | |
| protected JPEGImageWriteParam | JPEGParam
ImageWriteParam for JPEG writer. |
| protected IIOMetadata | JPEGStreamMetadata
Stream metadata equivalent to a tables-only stream such as in
the |
| protected ImageWriter | JPEGWriter
The JPEG writer. |
| private ImageWriteParam | |
| protected static final String | |
| protected boolean | writeAbbreviatedStream
Whether to write abbreviated JPEG streams (default == false). |
| Access | Constructor and Description |
|---|---|
| public | TIFFBaseJPEGCompressor(String compressionType, int compressionTagValue, boolean isCompressionLossless, ImageWriteParam param)
|
| Modifier and Type | Method and Description |
|---|---|
| public final int | encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride)
Implements abstract com. Encodes the supplied image data, writing to the currently set
|
| private static List | |
| private IIOMetadata | |
| protected void | initJPEGWriter(boolean
Whether the JPEG writer must
support JPEG native stream metadata, i.e., be capable of writing
abbreviated streams. supportsStreamMetadata, boolean Whether the JPEG writer must
support JPEG native image metadata. supportsImageMetadata)Initializes the JPEGWriter and JPEGParam instance variables. |
| private static void | pruneNodes(Node
A javax_imageio_jpeg_image_1.0 tree. tree, boolean Whether to prune Huffman and quantization tables. pruneTables)Removes nonessential nodes from a JPEG native image metadata tree. |
| baos | back to summary |
|---|---|
| private TIFFBaseJPEGCompressor. | |
| IMAGE_METADATA_NAME | back to summary |
|---|---|
| protected static final String IMAGE_METADATA_NAME | |
| JPEGImageMetadata | back to summary |
|---|---|
| private IIOMetadata JPEGImageMetadata | |
| JPEGParam | back to summary |
|---|---|
| protected JPEGImageWriteParam JPEGParam ImageWriteParam for JPEG writer.
May be initialized by | |
| JPEGStreamMetadata | back to summary |
|---|---|
| protected IIOMetadata JPEGStreamMetadata Stream metadata equivalent to a tables-only stream such as in
the | |
| JPEGWriter | back to summary |
|---|---|
| protected ImageWriter JPEGWriter The JPEG writer.
May be initialized by | |
| param | back to summary |
|---|---|
| private ImageWriteParam param | |
| STREAM_METADATA_NAME | back to summary |
|---|---|
| protected static final String STREAM_METADATA_NAME | |
| writeAbbreviatedStream | back to summary |
|---|---|
| protected boolean writeAbbreviatedStream Whether to write abbreviated JPEG streams (default == false).
A subclass which sets this to | |
| TIFFBaseJPEGCompressor | back to summary |
|---|---|
| public TIFFBaseJPEGCompressor(String compressionType, int compressionTagValue, boolean isCompressionLossless, ImageWriteParam param) | |
| encode | back to summary |
|---|---|
| public final int encode(byte[] b, int off, int width, int height, int[] bitsPerSample, int scanlineStride) throws IOException Implements abstract com. Doc from com. Encodes the supplied image data, writing to the currently set
| |
| getAllNodes | back to summary |
|---|---|
| private static List | |
| getImageMetadata | back to summary |
|---|---|
| private IIOMetadata getImageMetadata(boolean pruneTables) throws IIOException Retrieves image metadata with non-core nodes removed. | |
| initJPEGWriter | back to summary |
|---|---|
| protected void initJPEGWriter(boolean supportsStreamMetadata, boolean supportsImageMetadata) Initializes the JPEGWriter and JPEGParam instance variables. This method must be called before encode() is invoked.
| |
| pruneNodes | back to summary |
|---|---|
| private static void pruneNodes(Node tree, boolean pruneTables) Removes nonessential nodes from a JPEG native image metadata tree.
All nodes derived from JPEG marker segments other than DHT, DQT,
SOF, SOS segments are removed unless
| |
ByteArrayOutputStream which allows writing to an
ImageOutputStream.
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void |
| IIOByteArrayOutputStream | back to summary |
|---|---|
| pack-priv IIOByteArrayOutputStream() | |
| IIOByteArrayOutputStream | back to summary |
|---|---|
| pack-priv IIOByteArrayOutputStream(int size) | |
| writeTo | back to summary |
|---|---|
| public synchronized void writeTo(ImageOutputStream ios) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final ImageWriter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| writer | back to summary |
|---|---|
| private final ImageWriter writer | |
| ImageWriterDisposerRecord | back to summary |
|---|---|
| public ImageWriterDisposerRecord(ImageWriter writer) | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements sun.
| |