KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)JPEGStreamMetadataFormatResources.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 JPEGStreamMetadataFormatResources
13        extends JPEGMetadataFormatResources {
14
15     public JPEGStreamMetadataFormatResources() {}
16
17     protected Object JavaDoc[][] getContents() {
18         // return a copy of commonContents; in theory we want a deep clone
19
// of commonContents, but since it only contains (immutable) Strings,
20
// this shallow copy is sufficient
21
Object JavaDoc[][] commonCopy = new Object JavaDoc[commonContents.length][2];
22         for (int i = 0; i < commonContents.length; i++) {
23             commonCopy[i][0] = commonContents[i][0];
24             commonCopy[i][1] = commonContents[i][1];
25         }
26         return commonCopy;
27     }
28 }
29
Popular Tags