|
41 | 41 | * <li>data fields.
|
42 | 42 | * </ul>
|
43 | 43 | * This decoder only supports MARC 21 records with UTF-8 encoding. Other
|
44 |
| - * character coding schemes are not supported. A {@link FormatException} is |
45 |
| - * thrown if a record with an unsupported coding scheme is encountered. |
| 44 | + * character coding schemes are not supported. A |
| 45 | + * {@link org.metafacture.framework.FormatException} is thrown if a record |
| 46 | + * with an unsupported coding scheme is encountered. |
46 | 47 | * <p>
|
47 | 48 | * The bibliographic information in the record leader is
|
48 | 49 | * <ul>
|
|
56 | 57 | * <li>multipart resource record level.
|
57 | 58 | * </ul>
|
58 | 59 | * This information is emitted as an entity named
|
59 |
| - * "{@value Marc21EventNames#LEADER_ENTITY}". It is emitted directly |
60 |
| - * after the <i>start-record</i> event. The entity contains the following |
61 |
| - * literals: |
| 60 | + * {@value org.metafacture.biblio.marc21.Marc21EventNames#LEADER_ENTITY}. It is |
| 61 | + * emitted directly after the <i>start-record</i> event. The entity contains |
| 62 | + * the following literals: |
62 | 63 | * <ol>
|
63 |
| - * <li>{@value Marc21EventNames#RECORD_STATUS_LITERAL} |
64 |
| - * <li>{@value Marc21EventNames#RECORD_TYPE_LITERAL} |
65 |
| - * <li>{@value Marc21EventNames#BIBLIOGRAPHIC_LEVEL_LITERAL} |
66 |
| - * <li>{@value Marc21EventNames#TYPE_OF_CONTROL_LITERAL} |
67 |
| - * <li>{@value Marc21EventNames#CHARACTER_CODING_LITERAL} |
68 |
| - * <li>{@value Marc21EventNames#ENCODING_LEVEL_LITERAL} |
69 |
| - * <li>{@value Marc21EventNames#CATALOGING_FORM_LITERAL} |
70 |
| - * <li>{@value Marc21EventNames#MULTIPART_LEVEL_LITERAL} |
| 64 | + * <li>{@value org.metafacture.biblio.marc21.Marc21EventNames#RECORD_STATUS_LITERAL} |
| 65 | + * <li>{@value org.metafacture.biblio.marc21.Marc21EventNames#RECORD_TYPE_LITERAL} |
| 66 | + * <li>{@value org.metafacture.biblio.marc21.Marc21EventNames#BIBLIOGRAPHIC_LEVEL_LITERAL} |
| 67 | + * <li>{@value org.metafacture.biblio.marc21.Marc21EventNames#TYPE_OF_CONTROL_LITERAL} |
| 68 | + * <li>{@value org.metafacture.biblio.marc21.Marc21EventNames#CHARACTER_CODING_LITERAL} |
| 69 | + * <li>{@value org.metafacture.biblio.marc21.Marc21EventNames#ENCODING_LEVEL_LITERAL} |
| 70 | + * <li>{@value org.metafacture.biblio.marc21.Marc21EventNames#CATALOGING_FORM_LITERAL} |
| 71 | + * <li>{@value org.metafacture.biblio.marc21.Marc21EventNames#MULTIPART_LEVEL_LITERAL} |
71 | 72 | * </ol>
|
72 | 73 | * The literals are emitted in the order in which they are listed here. The
|
73 | 74 | * values of these literals are the characters at the corresponding
|
74 | 75 | * positions in the record leader (see
|
75 | 76 | * <a href="http://www.loc.gov/marc/bibliographic/bdleader.html">MARC 21
|
76 | 77 | * Standard: Record Leader</a> for a description of the allowed values). The
|
77 | 78 | * literal values are always only single characters. As this decoder only
|
78 |
| - * supports MARC 21 records with UTF-8 encoding, the value of the <i>literal |
79 |
| - * "{@value Marc21EventNames#CHARACTER_CODING_LITERAL}"</i> will |
80 |
| - * always be "a". |
| 79 | + * supports MARC 21 records with UTF-8 encoding, the value of the literal |
| 80 | + * {@value org.metafacture.biblio.marc21.Marc21EventNames#CHARACTER_CODING_LITERAL} |
| 81 | + * will always be "a". |
81 | 82 | * <p>
|
82 | 83 | * For example, given a record with the leader
|
83 | 84 | * <pre>
|
|
86 | 87 | * the following event stream will be emitted:
|
87 | 88 | * <pre>
|
88 | 89 | * start-record "1"
|
89 |
| - * start-entity "{@value Marc21EventNames#LEADER_ENTITY}" |
90 |
| - * literal "{@value Marc21EventNames#RECORD_STATUS_LITERAL}": n |
91 |
| - * literal "{@value Marc21EventNames#RECORD_TYPE_LITERAL}": o |
92 |
| - * literal "{@value Marc21EventNames#BIBLIOGRAPHIC_LEVEL_LITERAL}": a |
93 |
| - * literal "{@value Marc21EventNames#TYPE_OF_CONTROL_LITERAL}": " " |
94 |
| - * literal "{@value Marc21EventNames#CHARACTER_CODING_LITERAL}": a |
95 |
| - * literal "{@value Marc21EventNames#ENCODING_LEVEL_LITERAL}": z |
96 |
| - * literal "{@value Marc21EventNames#CATALOGING_FORM_LITERAL}": u |
97 |
| - * literal "{@value Marc21EventNames#MULTIPART_LEVEL_LITERAL}": " " |
| 90 | + * start-entity {@value org.metafacture.biblio.marc21.Marc21EventNames#LEADER_ENTITY} |
| 91 | + * literal {@value org.metafacture.biblio.marc21.Marc21EventNames#RECORD_STATUS_LITERAL}: n |
| 92 | + * literal {@value org.metafacture.biblio.marc21.Marc21EventNames#RECORD_TYPE_LITERAL}: o |
| 93 | + * literal {@value org.metafacture.biblio.marc21.Marc21EventNames#BIBLIOGRAPHIC_LEVEL_LITERAL}: a |
| 94 | + * literal {@value org.metafacture.biblio.marc21.Marc21EventNames#TYPE_OF_CONTROL_LITERAL}: " " |
| 95 | + * literal {@value org.metafacture.biblio.marc21.Marc21EventNames#CHARACTER_CODING_LITERAL}: a |
| 96 | + * literal {@value org.metafacture.biblio.marc21.Marc21EventNames#ENCODING_LEVEL_LITERAL}: z |
| 97 | + * literal {@value org.metafacture.biblio.marc21.Marc21EventNames#CATALOGING_FORM_LITERAL}: u |
| 98 | + * literal {@value org.metafacture.biblio.marc21.Marc21EventNames#MULTIPART_LEVEL_LITERAL}: " " |
98 | 99 | * end-entity
|
99 | 100 | * …
|
100 | 101 | * </pre>
|
|
124 | 125 | * If the decoder receives an empty input string it is ignored and no stream
|
125 | 126 | * events are emitted.
|
126 | 127 | * <p>
|
127 |
| - * If an error occurs during decoding, a {@link FormatException} is thrown. |
| 128 | + * If an error occurs during decoding, a |
| 129 | + * {@link org.metafacture.framework.FormatException} is thrown. |
128 | 130 | *
|
129 | 131 | * @author Christoph Böhme
|
130 | 132 | * @see "ISO 2709:2008 Standard"
|
|
0 commit comments