Source code: com/sixlegs/image/png/TextChunk.java
1 // Copyright (C) 1998, 1999, 2001 Chris Nokleberg
2 // Please see included LICENSE.TXT
3
4 package com.sixlegs.image.png;
5
6 /**
7 * Common interface to all PNG text chunks (tEXt, zTXt, iTXt).
8 * @see PngImage#getTextChunk
9 * @see PngImage#getProperty
10 */
11 public interface TextChunk
12 {
13 /**
14 * Returns the Latin-1 [ISO-8859-1] encoded keyword
15 * of this TextChunk.
16 */
17 String getKeyword();
18
19 /**
20 * Returns a translation of the keyword into the language
21 * used by this TextChunk, or null if unspecified.
22 */
23 String getTranslatedKeyword();
24
25 /**
26 * Returns the language [RFC-1766] used by the translated
27 * keyword and the text, or null if unspecified.
28 */
29 String getLanguage();
30
31 /**
32 * Returns the text of this TextChunk.
33 */
34 String getText();
35
36 /**
37 * Returns the original chunk type of this TextChunk: "tEXt",
38 * "zTXt", or "iTXt".
39 */
40 String getChunkType();
41 }