You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
869 B
48 lines
869 B
/*
|
|
* Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
|
|
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
package com.sun.imageio.plugins.jpeg;
|
|
|
|
import javax.imageio.metadata.IIOMetadataFormat;
|
|
import javax.imageio.metadata.IIOMetadataFormatImpl;
|
|
|
|
public class JPEGStreamMetadataFormat extends JPEGMetadataFormat {
|
|
|
|
private static JPEGStreamMetadataFormat theInstance = null;
|
|
|
|
private JPEGStreamMetadataFormat() {
|
|
super(JPEG.nativeStreamMetadataFormatName,
|
|
CHILD_POLICY_SEQUENCE);
|
|
addStreamElements(getRootName());
|
|
}
|
|
|
|
public static synchronized IIOMetadataFormat getInstance() {
|
|
if (theInstance == null) {
|
|
theInstance = new JPEGStreamMetadataFormat();
|
|
}
|
|
return theInstance;
|
|
}
|
|
}
|