Class PEFConverterFacade

java.lang.Object
org.daisy.braille.facade.PEFConverterFacade

public class PEFConverterFacade extends Object
Provides a facade for both PEFHandler and TextHandler
Author:
Joel HÃ¥kansson
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SimpleDateFormat
     
    static final String
    Key for parsePefFile setting, corresponding settings value should match a value in PEFHandler.Alignment
    static final String
    Key for parsePefFile setting, corresponding settings value should be the number of characters to offset alignment by
    static final String
    Key for parseTextFile setting, corresponding settings value should contain the author of the publication
    static final String
    Key for parsePefFile setting, corresponding settings value should match a value in StandardLineBreaks.Type
    static final String
    Key for parsePefFile setting, corresponding settings value should be a number, in millimeters
    static final String
    Key for parsePefFile setting, corresponding settings value should be a number, in millimeters
    static final String
    Key for parseTextFile setting, corresponding settings value should be a string containing a valid date on the form yyyy-MM-dd
    static final String
    Key for parseTextFile setting, corresponding settings value should be "true" for duplex or "false" for simplex
    static final String
    Key for parsePefFile setting, corresponding settings value should match an embosser identifier
    static final String
    Key for parsePefFile setting, corresponding settings value should match a value in EmbosserBrailleConverter.EightDotFallbackMethod
    static final String
    Key for parseTextFile setting, corresponding settings value should contain the identifier for the publication
    static final String
    Key for parseTextFile setting, corresponding settings value should contain the language of the publication
    static final String
    Key for parseTextFile setting, corresponding settings value should match the table to use
    static final String
    Key for parsePefFile setting, corresponding settings value should match a padding style
    static final String
    Key for parsePefFile setting, corresponding settings value should match a range
    static final String
    Key for parsePefFile setting, corresponding settings value should be a character in the range 0x2800-0x283F
    static final String
    Key for parsePefFile setting, corresponding settings value should match a table identifier
    static final String
    Key for parseTextFile setting, corresponding settings value should contain the title of the publication
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    parsePefFile(File input, OutputStream os, PageFormat pf, Map<String,String> settings)
    Parses the given PEF-file input using the supplied output stream and settings.
    static void
    Parses the given input using the supplied PEFHandler.
    static void
    Parses the given input stream using the supplied PEFHandler.
    static void
    parseTextFile(File input, File output, Map<String,String> settings)
    Parses a text file and outputs a PEF-file based on the contents of the file

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait