Package org.daisy.braille.embosser
Class BufferedVolumeEmbosser.Builder
java.lang.Object
org.daisy.braille.embosser.BufferedVolumeEmbosser.Builder
- Enclosing class:
- BufferedVolumeEmbosser
Provides a builder for a BufferedVolumeEmbosser
- Author:
- Joel HÃ¥kansson
-
Constructor Summary
ConstructorDescriptionBuilder
(Device pd, BrailleConverter bt, VolumeWriter vw, EmbosserWriterProperties ep) Creates a new Builder -
Method Summary
Modifier and TypeMethodDescriptionautoLineFeedOnEmptyPage
(boolean value) Sets the auto line feed on empty page policy.Sets the line break stylebreaks
(LineBreaks value) Sets the line break stylebuild()
Builds a new BufferedVolumeEmbosser based on this builders current configuration.padNewline
(String value) Sets the padding styleSets the padding style
-
Constructor Details
-
Builder
Creates a new Builder- Parameters:
pd
- the Device to usebt
- the BrailleConverter to usevw
- the VolumeWriter to useep
- the EmbosserWriterProperties to use
-
-
Method Details
-
breaks
Sets the line break style- Parameters:
value
- one of dos, unix, mac or default- Returns:
- returns this object
-
breaks
Sets the line break style- Parameters:
value
- the line break style to use- Returns:
- returns this object
-
padNewline
Sets the padding style- Parameters:
value
- a padding style- Returns:
- returns this object
-
padNewline
Sets the padding style- Parameters:
value
- the padding style to use- Returns:
- returns this object
-
autoLineFeedOnEmptyPage
Sets the auto line feed on empty page policy.- Parameters:
value
- set to true, to add line feed on empty page, false otherwise.- Returns:
- returns this object
-
build
Builds a new BufferedVolumeEmbosser based on this builders current configuration.- Returns:
- returns a new BufferedVolumeEmbosser
-