java.io.Closeable
, java.lang.AutoCloseable
, EmbosserProperties
, EmbosserWriter
, EmbosserWriterProperties
public class ConfigurableEmbosser extends AbstractEmbosserWriter
Modifier and Type | Class | Description |
---|---|---|
static class |
ConfigurableEmbosser.Builder |
Provides a builder for ConfigurableEmbosser
|
AbstractEmbosserWriter.Padding
EmbosserProperties.PrintMode
pagebreaks
Modifier and Type | Method | Description |
---|---|---|
protected 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 EmbosserWriter
|
LineBreaks |
getLinebreakStyle() |
Gets the line break style for the EmbosserWriter
|
AbstractEmbosserWriter.Padding |
getPaddingStyle() |
Gets the form feed padding style for the EmbosserWriter
|
BrailleConverter |
getTable() |
Gets the table for the EmbosserWriter
|
void |
open(boolean duplex) |
Opens for writing using the default contract
|
currentPage, getMaxHeight, getMaxWidth, getPagebreakStyle, getRowGap, init, isClosed, isOpen, lineFeed, newLine, newPage, newSectionAndPage, newVolumeSectionAndPage, open, pageIsEmpty, setRowGap, supports8dot, supportsAligning, supportsDuplex, supportsPrintMode, supportsVolumes, supportsZFolding, write
protected void formFeed() throws java.io.IOException
AbstractEmbosserWriter
formFeed
in class AbstractEmbosserWriter
java.io.IOException
- if IO failsprotected void add(byte b) throws java.io.IOException
AbstractEmbosserWriter
add
in class AbstractEmbosserWriter
b
- the byte to addjava.io.IOException
- if IO fails.protected void addAll(byte[] bytes) throws java.io.IOException
AbstractEmbosserWriter
addAll
in class AbstractEmbosserWriter
bytes
- the bytes to addjava.io.IOException
- if IO failspublic BrailleConverter getTable()
AbstractEmbosserWriter
getTable
in class AbstractEmbosserWriter
public LineBreaks getLinebreakStyle()
AbstractEmbosserWriter
getLinebreakStyle
in class AbstractEmbosserWriter
public AbstractEmbosserWriter.Padding getPaddingStyle()
AbstractEmbosserWriter
getPaddingStyle
in class AbstractEmbosserWriter
public void open(boolean duplex) throws java.io.IOException
EmbosserWriter
open
in interface EmbosserWriter
open
in class AbstractEmbosserWriter
java.io.IOException
- if an I/O exception of some sort has occurredpublic void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in class AbstractEmbosserWriter
java.io.IOException