Class BufferedVolumeEmbosser.Builder
- java.lang.Object
-
- org.daisy.braille.utils.impl.tools.embosser.BufferedVolumeEmbosser.Builder
-
- Enclosing class:
- BufferedVolumeEmbosser
public static class BufferedVolumeEmbosser.Builder extends Object
Provides a builder for a BufferedVolumeEmbosser.
-
-
Constructor Summary
Constructors Constructor Description Builder(Device pd, BrailleConverter bt, VolumeWriter vw, InternalEmbosserWriterProperties ep)
Creates a new Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BufferedVolumeEmbosser.Builder
autoLineFeedOnEmptyPage(boolean value)
Sets the auto line feed on empty page policy.BufferedVolumeEmbosser.Builder
breaks(String value)
Sets the line break style.BufferedVolumeEmbosser.Builder
breaks(LineBreaks value)
Sets the line break style.BufferedVolumeEmbosser
build()
Builds a new BufferedVolumeEmbosser based on this builders current configuration.BufferedVolumeEmbosser.Builder
padNewline(String value)
Sets the padding style.BufferedVolumeEmbosser.Builder
padNewline(AbstractEmbosserWriter.Padding value)
Sets the padding style.
-
-
-
Constructor Detail
-
Builder
public Builder(Device pd, BrailleConverter bt, VolumeWriter vw, InternalEmbosserWriterProperties ep)
Creates a new Builder.- Parameters:
pd
- the Device to usebt
- the BrailleConverter to usevw
- the VolumeWriter to useep
- the EmbosserWriterProperties to use
-
-
Method Detail
-
breaks
public BufferedVolumeEmbosser.Builder breaks(String value)
Sets the line break style.- Parameters:
value
- one of dos, unix, mac or default- Returns:
- returns this object
-
breaks
public BufferedVolumeEmbosser.Builder breaks(LineBreaks value)
Sets the line break style.- Parameters:
value
- the line break style to use- Returns:
- returns this object
-
padNewline
public BufferedVolumeEmbosser.Builder padNewline(String value)
Sets the padding style.- Parameters:
value
- a padding style- Returns:
- returns this object
-
padNewline
public BufferedVolumeEmbosser.Builder padNewline(AbstractEmbosserWriter.Padding value)
Sets the padding style.- Parameters:
value
- the padding style to use- Returns:
- returns this object
-
autoLineFeedOnEmptyPage
public BufferedVolumeEmbosser.Builder autoLineFeedOnEmptyPage(boolean value)
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
public BufferedVolumeEmbosser build()
Builds a new BufferedVolumeEmbosser based on this builders current configuration.- Returns:
- returns a new BufferedVolumeEmbosser
-
-