1 /*
2  * Copyright (c) 2001, 2005, Oracle and/or its affiliates. All rights reserved.
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * This code is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 only, as
7  * published by the Free Software Foundation.  Oracle designates this
8  * particular file as subject to the "Classpath" exception as provided
9  * by Oracle in the LICENSE file that accompanied this code.
10  *
11  * This code is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  * version 2 for more details (a copy is included in the LICENSE file that
15  * accompanied this code).
16  *
17  * You should have received a copy of the GNU General Public License version
18  * 2 along with this work; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 
26 package com.sun.imageio.plugins.jpeg;
27 
28 import java.util.ListResourceBundle;
29 
30 public class JPEGImageWriterResources extends ListResourceBundle {
31 
JPEGImageWriterResources()32     public JPEGImageWriterResources() {}
33 
getContents()34     protected Object[][] getContents() {
35         return new Object[][] {
36 
37         {Integer.toString(JPEGImageWriter.WARNING_DEST_IGNORED),
38          "Only Rasters or band subsets may be written with a destination type. "
39          + "Destination type ignored."},
40         {Integer.toString(JPEGImageWriter.WARNING_STREAM_METADATA_IGNORED),
41          "Stream metadata ignored on write"},
42         {Integer.toString(JPEGImageWriter.WARNING_DEST_METADATA_COMP_MISMATCH),
43          "Metadata component ids incompatible with destination type. "
44          + "Metadata modified."},
45         {Integer.toString(JPEGImageWriter.WARNING_DEST_METADATA_JFIF_MISMATCH),
46          "Metadata JFIF settings incompatible with destination type. "
47          + "Metadata modified."},
48         {Integer.toString(JPEGImageWriter.WARNING_DEST_METADATA_ADOBE_MISMATCH),
49          "Metadata Adobe settings incompatible with destination type. "
50          + "Metadata modified."},
51         {Integer.toString(JPEGImageWriter.WARNING_IMAGE_METADATA_JFIF_MISMATCH),
52          "Metadata JFIF settings incompatible with image type. "
53          + "Metadata modified."},
54         {Integer.toString(JPEGImageWriter.WARNING_IMAGE_METADATA_ADOBE_MISMATCH),
55          "Metadata Adobe settings incompatible with image type. "
56          + "Metadata modified."},
57         {Integer.toString(JPEGImageWriter.WARNING_METADATA_NOT_JPEG_FOR_RASTER),
58          "Metadata must be JPEGMetadata when writing a Raster. "
59          + "Metadata ignored."},
60         {Integer.toString(JPEGImageWriter.WARNING_NO_BANDS_ON_INDEXED),
61          "Band subset not allowed for an IndexColorModel image.  "
62          + "Band subset ignored."},
63         {Integer.toString(JPEGImageWriter.WARNING_ILLEGAL_THUMBNAIL),
64          "Thumbnails must be simple (possibly index) RGB or grayscale.  "
65          + "Incompatible thumbnail ignored."},
66         {Integer.toString(JPEGImageWriter.WARNING_IGNORING_THUMBS ),
67          "Thumbnails ignored for non-JFIF-compatible image."},
68         {Integer.toString(JPEGImageWriter.WARNING_FORCING_JFIF ),
69          "Thumbnails require JFIF marker segment.  "
70          + "Missing node added to metadata."},
71         {Integer.toString(JPEGImageWriter.WARNING_THUMB_CLIPPED ),
72          "Thumbnail clipped."},
73         {Integer.toString(JPEGImageWriter.WARNING_METADATA_ADJUSTED_FOR_THUMB ),
74          "Metadata adjusted (made JFIF-compatible) for thumbnail."},
75         {Integer.toString(JPEGImageWriter.WARNING_NO_RGB_THUMB_AS_INDEXED ),
76          "RGB thumbnail can't be written as indexed.  Written as RGB"},
77         {Integer.toString(JPEGImageWriter.WARNING_NO_GRAY_THUMB_AS_INDEXED),
78          "Grayscale thumbnail can't be written as indexed.  Written as JPEG"},
79 
80        };
81     }
82 }
83