Class TocWriter
java.lang.Object
io.goobi.viewer.model.toc.export.pdf.TocWriter
TocWriter class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createPdfDocument
(OutputStream output, List<TOCElement> elements) createDocument.getAsText
(List<TOCElement> elements) Getter for the fieldauthor
.int
Getter for the fieldlevelIndent
.getTitle()
Getter for the fieldtitle
.static void
main.void
setLevelIndent
(int levelIndent) Setter for the fieldlevelIndent
.
-
Constructor Details
-
Method Details
-
getAuthor
Getter for the field
author
.- Returns:
- a
String
object.
-
getTitle
Getter for the field
title
.- Returns:
- a
String
object.
-
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
- aOutputStream
object.elements
- aList
object.- Throws:
WriteTocException
- if any.
-
getAsText
- Parameters:
elements
- TOC element list- Returns:
String
-
main
main.
- Parameters:
args
- an array ofString
objects.- Throws:
FileNotFoundException
- if any.IOException
- if any.WriteTocException
- if any.
-