Package nl.siegmann.epublib.epub
Class PackageDocumentMetadataWriter
java.lang.Object
nl.siegmann.epublib.epub.PackageDocumentBase
nl.siegmann.epublib.epub.PackageDocumentMetadataWriter
-
Nested Class Summary
Nested classes/interfaces inherited from class nl.siegmann.epublib.epub.PackageDocumentBase
PackageDocumentBase.DCAttributes, PackageDocumentBase.DCTags, PackageDocumentBase.OPFAttributes, PackageDocumentBase.OPFTags, PackageDocumentBase.OPFValues -
Field Summary
Fields inherited from class nl.siegmann.epublib.epub.PackageDocumentBase
BOOK_ID_ID, dateFormat, NAMESPACE_DUBLIN_CORE, NAMESPACE_OPF, PREFIX_DUBLIN_CORE, PREFIX_OPF -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidwriteIdentifiers(List<Identifier> identifiers, org.xmlpull.v1.XmlSerializer serializer) Writes out the complete list of Identifiers to the package document.static voidwriteMetaData(Book book, org.xmlpull.v1.XmlSerializer serializer) Writes the book's metadata.private static voidwriteSimpleMetdataElements(String tagName, List<String> values, org.xmlpull.v1.XmlSerializer serializer)
-
Constructor Details
-
PackageDocumentMetadataWriter
public PackageDocumentMetadataWriter()
-
-
Method Details
-
writeMetaData
public static void writeMetaData(Book book, org.xmlpull.v1.XmlSerializer serializer) throws IllegalArgumentException, IllegalStateException, IOException Writes the book's metadata.- Parameters:
book-serializer-- Throws:
IOExceptionIllegalStateExceptionIllegalArgumentException
-
writeSimpleMetdataElements
private static void writeSimpleMetdataElements(String tagName, List<String> values, org.xmlpull.v1.XmlSerializer serializer) throws IllegalArgumentException, IllegalStateException, IOException -
writeIdentifiers
private static void writeIdentifiers(List<Identifier> identifiers, org.xmlpull.v1.XmlSerializer serializer) throws IllegalArgumentException, IllegalStateException, IOException Writes out the complete list of Identifiers to the package document. The first identifier for which the bookId is true is made the bookId identifier. If no identifier has bookId == true then the first bookId identifier is written as the primary.- Parameters:
identifiers-serializer-- Throws:
IOExceptionIllegalStateExceptionIllegalArgumentException
-