Package org.daisy.braille.embosser
Class ConfigurableEmbosser
java.lang.Object
org.daisy.braille.embosser.AbstractEmbosserWriter
org.daisy.braille.embosser.ConfigurableEmbosser
- All Implemented Interfaces:
Closeable
,AutoCloseable
,EmbosserProperties
,EmbosserWriter
,EmbosserWriterProperties
Provides a configurable embosser. Outputs to a single OutputStream.
- Version:
- 22 okt 2008
- Author:
- Joel HÃ¥kansson
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Provides a builder for ConfigurableEmbosserNested classes/interfaces inherited from class org.daisy.braille.embosser.AbstractEmbosserWriter
AbstractEmbosserWriter.Padding
Nested classes/interfaces inherited from interface org.daisy.braille.embosser.EmbosserProperties
EmbosserProperties.PrintMode
-
Field Summary
Fields inherited from class org.daisy.braille.embosser.AbstractEmbosserWriter
pagebreaks
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(byte b) Adds a byte to the EmbosserWriter output.protected void
addAll
(byte[] bytes) Adds bytes to the EmbosserWriter output.void
close()
protected void
formFeed()
Performs a form feed on the EmbosserWriterGets the line break style for the EmbosserWriterGets the form feed padding style for the EmbosserWritergetTable()
Gets the table for the EmbosserWritervoid
open
(boolean duplex) Opens for writing using the default contractMethods inherited from class org.daisy.braille.embosser.AbstractEmbosserWriter
currentPage, getMaxHeight, getMaxWidth, getPagebreakStyle, getRowGap, init, isClosed, isOpen, lineFeed, newLine, newPage, newSectionAndPage, newVolumeSectionAndPage, open, pageIsEmpty, setRowGap, supports8dot, supportsAligning, supportsDuplex, supportsPrintMode, supportsVolumes, supportsZFolding, write
-
Method Details
-
formFeed
Description copied from class:AbstractEmbosserWriter
Performs a form feed on the EmbosserWriter- Overrides:
formFeed
in classAbstractEmbosserWriter
- Throws:
IOException
- if IO fails
-
add
Description copied from class:AbstractEmbosserWriter
Adds a byte to the EmbosserWriter output.- Specified by:
add
in classAbstractEmbosserWriter
- Parameters:
b
- the byte to add- Throws:
IOException
- if IO fails.
-
addAll
Description copied from class:AbstractEmbosserWriter
Adds bytes to the EmbosserWriter output.- Specified by:
addAll
in classAbstractEmbosserWriter
- Parameters:
bytes
- the bytes to add- Throws:
IOException
- if IO fails
-
getTable
Description copied from class:AbstractEmbosserWriter
Gets the table for the EmbosserWriter- Specified by:
getTable
in classAbstractEmbosserWriter
- Returns:
- returns the table for the EmbosserWriter
-
getLinebreakStyle
Description copied from class:AbstractEmbosserWriter
Gets the line break style for the EmbosserWriter- Specified by:
getLinebreakStyle
in classAbstractEmbosserWriter
- Returns:
- returns the line break style for the EmbosserWriter
-
getPaddingStyle
Description copied from class:AbstractEmbosserWriter
Gets the form feed padding style for the EmbosserWriter- Specified by:
getPaddingStyle
in classAbstractEmbosserWriter
- Returns:
- returns the padding style for the EmbosserWriter
-
open
Description copied from interface:EmbosserWriter
Opens for writing using the default contract- Specified by:
open
in interfaceEmbosserWriter
- Overrides:
open
in classAbstractEmbosserWriter
- Throws:
IOException
- if an I/O exception of some sort has occurred
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classAbstractEmbosserWriter
- Throws:
IOException
-