public class TextMDMetadata extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
BYTE_ORDER
Uses enumerated values of 'big', 'little', and 'middle' endian.
|
static int |
BYTE_ORDER_BIG |
static int |
BYTE_ORDER_LITTLE |
static int |
BYTE_ORDER_MIDDLE |
static String |
CHARSET_ASCII |
static String |
CHARSET_ISO8859_1 |
static String |
CHARSET_UTF8 |
static String |
DEFAULT_LOCATION |
protected static Map<String,String> |
fromISO_639_2_T2B
Map from ISO 639/2 T to ISO 639/2 B
|
static String[] |
LINEBREAK
Uses enumerated values of 'CR', 'LF' and 'CR/LF' for the idenntification of the linebreak.
|
static int |
LINEBREAK_CR |
static int |
LINEBREAK_CRLF |
static int |
LINEBREAK_LF |
static String |
NAMESPACE
textMD namespace and version
|
static int |
NILL
To represent the unknown
|
protected static Set |
setOfUnknownJavaCharset
Set of unknown charsets in Java
|
protected static String[] |
UNKNOWN_JAVA_CHARSET
Array of textMD charsets unknown by java.nio.charset.Charsets
|
static String |
VERSION |
Constructor and Description |
---|
TextMDMetadata() |
Modifier and Type | Method and Description |
---|---|
int |
getByte_order() |
String |
getByte_orderString() |
String |
getByte_size() |
String |
getCharacter_size() |
String |
getCharset() |
String |
getLanguage() |
int |
getLinebreak() |
String |
getLinebreakString() |
String |
getMarkup_basis_version() |
String |
getMarkup_basis() |
String |
getMarkup_language_version() |
String |
getMarkup_language() |
void |
setByte_order(int byte_order) |
void |
setByte_size(String byte_size) |
void |
setCharacter_size(String character_size) |
void |
setCharset(String charset) |
void |
setLanguage(String language) |
void |
setLinebreak(int linebreak) |
void |
setMarkup_basis_version(String markup_basis_version) |
void |
setMarkup_basis(String markup_basis) |
void |
setMarkup_language_version(String markup_language_version) |
void |
setMarkup_language(String markup_language) |
static String |
toISO_639_2(String srcLang)
Transform a language to the ISO_639-2 language (only enumeration allowed in textMD schema).
|
static String |
toTextMDCharset(String srcCharset)
Transform a given charset in the "authorized" list given in the textMD schema enumeration.
|
public static final String NAMESPACE
public static final String DEFAULT_LOCATION
public static final String VERSION
public static final String[] BYTE_ORDER
public static final int BYTE_ORDER_BIG
public static final int BYTE_ORDER_LITTLE
public static final int BYTE_ORDER_MIDDLE
public static final String[] LINEBREAK
public static final int LINEBREAK_CR
public static final int LINEBREAK_LF
public static final int LINEBREAK_CRLF
protected static final String[] UNKNOWN_JAVA_CHARSET
protected static Set setOfUnknownJavaCharset
protected static Map<String,String> fromISO_639_2_T2B
public static final String CHARSET_ASCII
public static final String CHARSET_UTF8
public static final String CHARSET_ISO8859_1
public static final int NILL
public String getCharset()
public void setCharset(String charset)
charset
- the charset to setpublic int getByte_order()
public String getByte_orderString()
public void setByte_order(int byte_order)
byte_order
- the byte_order to setpublic String getByte_size()
public void setByte_size(String byte_size)
byte_size
- the byte_size to setpublic String getCharacter_size()
public void setCharacter_size(String character_size)
character_size
- the character_size to setpublic int getLinebreak()
public String getLinebreakString()
public void setLinebreak(int linebreak)
linebreak
- the linebreak to setpublic String getLanguage()
public void setLanguage(String language)
language
- the language to setpublic String getMarkup_basis()
public void setMarkup_basis(String markup_basis)
markup_basis
- the markup_basis to setpublic String getMarkup_basis_version()
public void setMarkup_basis_version(String markup_basis_version)
markup_basis_version
- the markup_basis_version to setpublic String getMarkup_language()
public void setMarkup_language(String markup_language)
markup_language
- the markup_language to setpublic String getMarkup_language_version()
public void setMarkup_language_version(String markup_language_version)
markup_language_version
- the markup_language_version to setpublic static String toTextMDCharset(String srcCharset)
srcCharset
- charset from the fileCopyright © 2008–2017 The Open Preservation Foundation. All rights reserved.