KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > media > format > image > iio > JPEGMediaHeader


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7
8 package org.jboss.media.format.image.iio;
9
10 import javax.imageio.metadata.IIOMetadata JavaDoc;
11
12 /**
13  * JPEG <code>MediaHeader</code> based on the Java Image I/O API.
14  *
15  * @version <tt>$Revision: 1.1 $</tt>
16  * @author <a HREF="mailto:ricardoarguello@users.sourceforge.net">Ricardo Argüello</a>
17  */

18 public class JPEGMediaHeader extends IIOMediaHeader
19 {
20    // FIXME
21
private static final long serialVersionUID = 0L;
22
23    private static final String JavaDoc JPEG_METADATA_FORMAT_NAME =
24       "javax_imageio_jpeg_image_1.0";
25
26    private static final String JavaDoc[] FIELD_NAMES = {
27    };
28
29    /**
30     * Constructor.
31     *
32     * @param metadata
33     * @param metadataFormat
34     */

35    public JPEGMediaHeader(IIOMetadata JavaDoc imageMetadata)
36    {
37       super(imageMetadata, JPEG_METADATA_FORMAT_NAME);
38    }
39
40    /**
41     * @see javax.emb.MediaHeader#getFieldNames()
42     */

43    public String JavaDoc[] getFieldNames()
44    {
45       return FIELD_NAMES;
46    }
47
48    /**
49     * @see javax.emb.MediaHeader#getField(java.lang.String)
50     */

51    public Object JavaDoc getField(String JavaDoc fieldname)
52    {
53       Object JavaDoc field = null;
54
55       return field;
56    }
57 }
58
Popular Tags