java.lang.AutoCloseable
, java.io.Closeable
, EmbosserProperties
, EmbosserWriterProperties
AbstractEmbosserWriter
, BufferedEmbosserWriter
, BufferedVolumeEmbosser
, ConfigurableEmbosser
, FileToDeviceEmbosserWriter
public interface EmbosserWriter extends EmbosserWriterProperties, java.io.Closeable
EmbosserProperties.PrintMode
Modifier and Type | Method | 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 |
open(boolean duplex,
Contract contract) |
Opens for writing
|
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(java.lang.String braille) |
Writes a string of braille to the embosser.
|
supports8dot, supportsAligning, supportsDuplex, supportsPrintMode, supportsVolumes, supportsZFolding
getMaxHeight, getMaxWidth
void write(java.lang.String braille) throws java.io.IOException
braille
- characters in the range 0x2800 to 0x28FFjava.io.IOException
void newLine() throws java.io.IOException
java.io.IOException
void newPage() throws java.io.IOException
java.io.IOException
void newSectionAndPage(boolean duplex) throws java.io.IOException
duplex
- java.io.IOException
void newVolumeSectionAndPage(boolean duplex) throws java.io.IOException
duplex
- java.io.IOException
void open(boolean duplex) throws java.io.IOException
java.io.IOException
- if an I/O exception of some sort has occurredvoid open(boolean duplex, Contract contract) throws java.io.IOException, ContractNotSupportedException
duplex
- contract
- java.io.IOException
- if an I/O exception of some sort has occurredContractNotSupportedException
- if the supplied contract is not supported, that is to say
if the contract does not contain information required by the implementationboolean isOpen()
boolean isClosed()
void setRowGap(int value)
value
- int getRowGap()