KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > imageio > plugins > jpeg > JPEGImageWriterResources


1 /*
2  * @(#)JPEGImageWriterResources.java 1.6 05/08/23
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.imageio.plugins.jpeg;
9
10 import java.util.ListResourceBundle JavaDoc;
11
12 public class JPEGImageWriterResources extends ListResourceBundle JavaDoc {
13
14     public JPEGImageWriterResources() {}
15          
16     protected Object JavaDoc[][] getContents() {
17         return new Object JavaDoc[][] {
18
19         {Integer.toString(JPEGImageWriter.WARNING_DEST_IGNORED),
20          "Only Rasters or band subsets may be written with a destination type. "
21          + "Destination type ignored."},
22         {Integer.toString(JPEGImageWriter.WARNING_STREAM_METADATA_IGNORED),
23          "Stream metadata ignored on write"},
24         {Integer.toString(JPEGImageWriter.WARNING_DEST_METADATA_COMP_MISMATCH),
25          "Metadata component ids incompatible with destination type. "
26          + "Metadata modified."},
27         {Integer.toString(JPEGImageWriter.WARNING_DEST_METADATA_JFIF_MISMATCH),
28          "Metadata JFIF settings incompatible with destination type. "
29          + "Metadata modified."},
30         {Integer.toString(JPEGImageWriter.WARNING_DEST_METADATA_ADOBE_MISMATCH),
31          "Metadata Adobe settings incompatible with destination type. "
32          + "Metadata modified."},
33         {Integer.toString(JPEGImageWriter.WARNING_IMAGE_METADATA_JFIF_MISMATCH),
34          "Metadata JFIF settings incompatible with image type. "
35          + "Metadata modified."},
36         {Integer.toString(JPEGImageWriter.WARNING_IMAGE_METADATA_ADOBE_MISMATCH),
37          "Metadata Adobe settings incompatible with image type. "
38          + "Metadata modified."},
39         {Integer.toString(JPEGImageWriter.WARNING_METADATA_NOT_JPEG_FOR_RASTER),
40          "Metadata must be JPEGMetadata when writing a Raster. "
41          + "Metadata ignored."},
42         {Integer.toString(JPEGImageWriter.WARNING_NO_BANDS_ON_INDEXED),
43          "Band subset not allowed for an IndexColorModel image. "
44          + "Band subset ignored."},
45         {Integer.toString(JPEGImageWriter.WARNING_ILLEGAL_THUMBNAIL),
46          "Thumbnails must be simple (possibly index) RGB or grayscale. "
47          + "Incompatible thumbnail ignored."},
48         {Integer.toString(JPEGImageWriter.WARNING_IGNORING_THUMBS ),
49          "Thumbnails ignored for non-JFIF-compatible image."},
50         {Integer.toString(JPEGImageWriter.WARNING_FORCING_JFIF ),
51          "Thumbnails require JFIF marker segment. "
52          + "Missing node added to metadata."},
53         {Integer.toString(JPEGImageWriter.WARNING_THUMB_CLIPPED ),
54          "Thumbnail clipped."},
55         {Integer.toString(JPEGImageWriter.WARNING_METADATA_ADJUSTED_FOR_THUMB ),
56          "Metadata adjusted (made JFIF-compatible) for thumbnail."},
57         {Integer.toString(JPEGImageWriter.WARNING_NO_RGB_THUMB_AS_INDEXED ),
58          "RGB thumbnail can't be written as indexed. Written as RGB"},
59         {Integer.toString(JPEGImageWriter.WARNING_NO_GRAY_THUMB_AS_INDEXED),
60        "Grayscale thumbnail can't be written as indexed. Written as JPEG"},
61
62        };
63     }
64 }
65
Popular Tags