Class PEFHandler.Builder

java.lang.Object
org.daisy.braille.pef.PEFHandler.Builder
Enclosing class:
PEFHandler

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

    • Builder

      public Builder(EmbosserWriter embosser)
      Create a new PEFHandler builder
      Parameters:
      embosser - the embosser writer to use
  • Method Details

    • range

      public PEFHandler.Builder range(Range value)
      Sets the range of pages to output
    • align

      Sets page alignment to use if the physical paper is bigger than the pages
      Parameters:
      value - the value to use
      Returns:
      returns this object
    • offset

      public PEFHandler.Builder offset(int value)
      Sets the page margin offset where positive numbers adjust towards the right side of the paper, and negative numbers adjust towards the left side.
      Parameters:
      value - the offset
      Returns:
      returns this object
    • topOffset

      public PEFHandler.Builder topOffset(int value)
      Sets the top offset.
    • build

      public PEFHandler build() throws IOException
      Builds a PEFHandler from this builder's current configuration.
      Returns:
      returns a new PEFHandler
      Throws:
      IOException