Package nl.siegmann.epublib.epub
Class PackageDocumentMetadataWriter
- java.lang.Object
-
- nl.siegmann.epublib.epub.PackageDocumentBase
-
- nl.siegmann.epublib.epub.PackageDocumentMetadataWriter
-
public class PackageDocumentMetadataWriter extends PackageDocumentBase
-
-
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 Constructor Description PackageDocumentMetadataWriter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidwriteIdentifiers(java.util.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(java.lang.String tagName, java.util.List<java.lang.String> values, org.xmlpull.v1.XmlSerializer serializer)
-
-
-
Method Detail
-
writeMetaData
public static void writeMetaData(Book book, org.xmlpull.v1.XmlSerializer serializer) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.io.IOException
Writes the book's metadata.- Parameters:
book-serializer-- Throws:
java.io.IOExceptionjava.lang.IllegalStateExceptionjava.lang.IllegalArgumentException
-
writeSimpleMetdataElements
private static void writeSimpleMetdataElements(java.lang.String tagName, java.util.List<java.lang.String> values, org.xmlpull.v1.XmlSerializer serializer) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.io.IOException- Throws:
java.lang.IllegalArgumentExceptionjava.lang.IllegalStateExceptionjava.io.IOException
-
writeIdentifiers
private static void writeIdentifiers(java.util.List<Identifier> identifiers, org.xmlpull.v1.XmlSerializer serializer) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException, java.io.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:
java.io.IOExceptionjava.lang.IllegalStateExceptionjava.lang.IllegalArgumentException
-
-