Class BufferedVolumeEmbosser.Builder

java.lang.Object
org.daisy.braille.embosser.BufferedVolumeEmbosser.Builder
Enclosing class:
BufferedVolumeEmbosser

public static class BufferedVolumeEmbosser.Builder extends Object
Provides a builder for a BufferedVolumeEmbosser
Author:
Joel HÃ¥kansson
  • Constructor Details

  • Method Details

    • 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

      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

      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