public interface EmbosserWriter extends EmbosserWriterProperties, Closeable
Modifier and Type | Method and Description |
---|---|
int |
getRowGap()
Gets the current row gap, measured as an integer
multiple of the dot-to-dot height.
|
boolean |
isClosed()
Tests if embosser has been closed
|
boolean |
isOpen()
Returns true if embosser is open
|
void |
newLine()
Starts a new line
|
void |
newPage()
Starts a new page
|
void |
newSectionAndPage(boolean duplex)
Starts a new page on a blank sheet of paper
with the specified duplex settings.
|
void |
newVolumeSectionAndPage(boolean duplex)
Starts a new page on a blank sheet of paper in a new volume
with the specified duplex settings.
|
void |
open(boolean duplex)
Opens for writing using the default contract.
|
void |
setRowGap(int value)
Sets the row gap for following calls to newLine
to the specified value, measured as an
integer multiple of the dot-to-dot height.
|
void |
write(String braille)
Writes a string of braille to the embosser.
|
getMaxWidth, supportsAligning
void write(String braille) throws IOException
braille
- characters in the range 0x2800 to 0x28FFIOException
- if an I/O error occursvoid newLine() throws IOException
IOException
- if an I/O error occursvoid newPage() throws IOException
IOException
- if an I/O error occursvoid newSectionAndPage(boolean duplex) throws IOException
duplex
- if both sides of sheets should be used, false otherwiseIOException
- if an I/O error occursvoid newVolumeSectionAndPage(boolean duplex) throws IOException
duplex
- if both sides of sheets should be used, false otherwiseIOException
- if an I/O error occursvoid open(boolean duplex) throws IOException
duplex
- true if both sides of sheets should be used, false otherwiseIOException
- if an I/O error occursboolean isOpen()
boolean isClosed()
void setRowGap(int value)
value
- the row gapint getRowGap()