Package org.daisy.braille.utils.pef
Class PEFHandler
- java.lang.Object
-
- org.xml.sax.helpers.DefaultHandler
-
- org.daisy.braille.utils.pef.PEFHandler
-
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
public class PEFHandler extends DefaultHandler
Provides a handler for reading a PEF-file and sending the contents to an Embosser. Constructor is private on purpose, use a Builder to create a new PEFHandler.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPEFHandler.AlignmentDefines alignment values.static classPEFHandler.BuilderProvides a Builder for PEFHandler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidendDocument()voidendElement(String uri, String localName, String qName)booleanhasWidthError()Returns true if there is a width error, false otherwise.voidstartElement(String uri, String localName, String qName, Attributes attributes)-
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
-
-
-
-
Method Detail
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classDefaultHandler- Throws:
SAXException
-
hasWidthError
public boolean hasWidthError()
Returns true if there is a width error, false otherwise.- Returns:
- returns true if there is a width error, false otherwise
-
endElement
public void endElement(String uri, String localName, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classDefaultHandler- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) throws SAXException- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Overrides:
endDocumentin classDefaultHandler- Throws:
SAXException
-
-