[4231] | 1 | /*
|
---|
| 2 | * This is public domain software - that is, you can do whatever you want
|
---|
| 3 | * with it, and include it software that is licensed under the GNU or the
|
---|
| 4 | * BSD license, or whatever other licence you choose, including proprietary
|
---|
| 5 | * closed source licenses. I do ask that you leave this header in tact.
|
---|
| 6 | *
|
---|
| 7 | * If you make modifications to this code that you think would benefit the
|
---|
| 8 | * wider community, please send me a copy and I'll post it on my site.
|
---|
| 9 | *
|
---|
| 10 | * If you make use of this code, I'd appreciate hearing about it.
|
---|
| 11 | * drew@drewnoakes.com
|
---|
| 12 | * Latest version of this software kept at
|
---|
| 13 | * http://drewnoakes.com/
|
---|
| 14 | *
|
---|
| 15 | * Created by dnoakes on Oct 10, 2003 using IntelliJ IDEA.
|
---|
| 16 | */
|
---|
| 17 | package com.drew.metadata.jpeg;
|
---|
| 18 |
|
---|
| 19 | import com.drew.metadata.Directory;
|
---|
| 20 |
|
---|
| 21 | import java.util.HashMap;
|
---|
| 22 |
|
---|
| 23 | /**
|
---|
| 24 | *
|
---|
| 25 | * @author Drew Noakes http://drewnoakes.com
|
---|
| 26 | */
|
---|
| 27 | public class JpegCommentDirectory extends Directory {
|
---|
| 28 |
|
---|
| 29 | /** This is in bits/sample, usually 8 (12 and 16 not supported by most software). */
|
---|
| 30 | public static final int TAG_JPEG_COMMENT = 0;
|
---|
| 31 |
|
---|
| 32 | protected static final HashMap tagNameMap = new HashMap();
|
---|
| 33 |
|
---|
| 34 | static {
|
---|
| 35 | tagNameMap.put(new Integer(TAG_JPEG_COMMENT), "Jpeg Comment");
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | public JpegCommentDirectory() {
|
---|
| 39 | this.setDescriptor(new JpegCommentDescriptor(this));
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | public String getName() {
|
---|
| 43 | return "JpegComment";
|
---|
| 44 | }
|
---|
| 45 |
|
---|
| 46 | protected HashMap getTagNameMap() {
|
---|
| 47 | return tagNameMap;
|
---|
| 48 | }
|
---|
| 49 | }
|
---|