KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * @(#)JPEGStreamMetadataFormat.java 1.5 03/12/19
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 javax.imageio.metadata.IIOMetadataFormat JavaDoc;
11 import javax.imageio.metadata.IIOMetadataFormatImpl JavaDoc;
12
13 public class JPEGStreamMetadataFormat extends JPEGMetadataFormat {
14
15     private static JPEGStreamMetadataFormat theInstance = null;
16
17     private JPEGStreamMetadataFormat() {
18         super(JPEG.nativeStreamMetadataFormatName,
19               CHILD_POLICY_SEQUENCE);
20         addStreamElements(getRootName());
21     }
22
23     public static synchronized IIOMetadataFormat JavaDoc getInstance() {
24         if (theInstance == null) {
25             theInstance = new JPEGStreamMetadataFormat();
26         }
27         return theInstance;
28     }
29 }
30
Popular Tags