Class TocWriter
java.lang.Object
io.goobi.viewer.model.toc.export.pdf.TocWriter
TocWriter class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePdfDocument(OutputStream output, List<TOCElement> elements) createDocument.getAsText(List<TOCElement> elements) Getter for the fieldauthor.intGetter for the fieldlevelIndent.getTitle()Getter for the fieldtitle.static voidmain.voidsetLevelIndent(int levelIndent) Setter for the fieldlevelIndent.
-
Constructor Details
-
Method Details
-
getAuthor
Getter for the field
author.- Returns:
- a
Stringobject.
-
getTitle
Getter for the field
title.- Returns:
- a
Stringobject.
-
getLevelIndent
public int getLevelIndent()Getter for the field
levelIndent.- Returns:
- a int.
-
setLevelIndent
public void setLevelIndent(int levelIndent) Setter for the field
levelIndent.- Parameters:
levelIndent- a int.
-
createPdfDocument
public void createPdfDocument(OutputStream output, List<TOCElement> elements) throws WriteTocException createDocument.
- Parameters:
output- aOutputStreamobject.elements- aListobject.- Throws:
WriteTocException- if any.
-
getAsText
- Parameters:
elements- TOC element list- Returns:
String
-
main
main.
- Parameters:
args- an array ofStringobjects.- Throws:
FileNotFoundException- if any.IOException- if any.WriteTocException- if any.
-