Package org.daisy.braille.embosser
Class BufferedVolumeEmbosser
java.lang.Object
org.daisy.braille.embosser.AbstractEmbosserWriter
org.daisy.braille.embosser.BufferedVolumeEmbosser
- All Implemented Interfaces:
Closeable,AutoCloseable,EmbosserProperties,EmbosserWriter,EmbosserWriterProperties
Provides a buffered volume embossers. This is similar to
ConfigurableEmbosser,
except that it supports writing each volume separately to a PrinterDevice rather than
to an OutputStream.- Author:
- Joel HÃ¥kansson
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProvides a builder for a BufferedVolumeEmbosserNested classes/interfaces inherited from class org.daisy.braille.embosser.AbstractEmbosserWriter
AbstractEmbosserWriter.PaddingNested 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 voidadd(byte b) Adds a byte to the EmbosserWriter output.protected voidaddAll(byte[] bytes) Adds bytes to the EmbosserWriter output.voidclose()protected voidformFeed()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 EmbosserWritervoidnewVolumeSectionAndPage(boolean duplex) Starts a new page on a blank sheet of paper in a new volume with the specified duplex settings.voidopen(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, open, pageIsEmpty, setRowGap, supports8dot, supportsAligning, supportsDuplex, supportsPrintMode, supportsVolumes, supportsZFolding, write
-
Method Details
-
open
Description copied from interface:EmbosserWriterOpens for writing using the default contract- Specified by:
openin interfaceEmbosserWriter- Overrides:
openin classAbstractEmbosserWriter- Throws:
IOException- if an I/O exception of some sort has occurred
-
getTable
Description copied from class:AbstractEmbosserWriterGets the table for the EmbosserWriter- Specified by:
getTablein classAbstractEmbosserWriter- Returns:
- returns the table for the EmbosserWriter
-
getLinebreakStyle
Description copied from class:AbstractEmbosserWriterGets the line break style for the EmbosserWriter- Specified by:
getLinebreakStylein classAbstractEmbosserWriter- Returns:
- returns the line break style for the EmbosserWriter
-
getPaddingStyle
Description copied from class:AbstractEmbosserWriterGets the form feed padding style for the EmbosserWriter- Specified by:
getPaddingStylein classAbstractEmbosserWriter- Returns:
- returns the padding style for the EmbosserWriter
-
add
protected void add(byte b) Description copied from class:AbstractEmbosserWriterAdds a byte to the EmbosserWriter output.- Specified by:
addin classAbstractEmbosserWriter- Parameters:
b- the byte to add
-
addAll
protected void addAll(byte[] bytes) Description copied from class:AbstractEmbosserWriterAdds bytes to the EmbosserWriter output.- Specified by:
addAllin classAbstractEmbosserWriter- Parameters:
bytes- the bytes to add
-
formFeed
Description copied from class:AbstractEmbosserWriterPerforms a form feed on the EmbosserWriter- Overrides:
formFeedin classAbstractEmbosserWriter- Throws:
IOException- if IO fails
-
newVolumeSectionAndPage
Description copied from interface:EmbosserWriterStarts a new page on a blank sheet of paper in a new volume with the specified duplex settings.- Specified by:
newVolumeSectionAndPagein interfaceEmbosserWriter- Overrides:
newVolumeSectionAndPagein classAbstractEmbosserWriter- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classAbstractEmbosserWriter- Throws:
IOException
-