public class BufferedEmbosserWriter extends java.lang.Object implements EmbosserWriter
EmbosserProperties.PrintMode| Constructor and Description |
|---|
BufferedEmbosserWriter(EmbosserWriter writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getMaxHeight()
Gets the maximum page height in the current configuration
|
int |
getMaxWidth()
Gets the maximum row width in the current configuration
|
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.
|
boolean |
supports8dot()
Returns true if this embosser supports 8 dot braille
|
boolean |
supportsAligning()
Returns true if this embosser supports aligning.
|
boolean |
supportsDuplex()
Returns true if this embosser supports duplex printing
|
boolean |
supportsPrintMode(EmbosserProperties.PrintMode mode)
Returns true if this embosser supports magazine layout.
|
boolean |
supportsVolumes()
Returns true if this embosser has some method for volume handling
|
boolean |
supportsZFolding()
Returns true if this embosser supports z-folding.
|
void |
write(java.lang.String braille)
Writes a string of braille to the embosser.
|
public BufferedEmbosserWriter(EmbosserWriter writer)
public int getMaxWidth()
EmbosserWriterPropertiesgetMaxWidth in interface EmbosserWriterPropertiespublic int getMaxHeight()
EmbosserWriterPropertiesgetMaxHeight in interface EmbosserWriterPropertiespublic boolean supportsVolumes()
EmbosserPropertiessupportsVolumes in interface EmbosserPropertiespublic boolean supports8dot()
EmbosserPropertiessupports8dot in interface EmbosserPropertiespublic boolean supportsDuplex()
EmbosserPropertiessupportsDuplex in interface EmbosserPropertiespublic boolean supportsAligning()
EmbosserPropertiesgetMaxWidth.
Should return true for all physical embossers, since they all have
a finite row length.supportsAligning in interface EmbosserPropertiespublic boolean supportsZFolding()
EmbosserPropertiessupportsZFolding in interface EmbosserPropertiespublic boolean supportsPrintMode(EmbosserProperties.PrintMode mode)
EmbosserPropertiessupportsPrintMode in interface EmbosserPropertiespublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void write(java.lang.String braille)
throws java.io.IOException
EmbosserWriterwrite in interface EmbosserWriterbraille - characters in the range 0x2800 to 0x28FFjava.io.IOExceptionpublic void newLine()
throws java.io.IOException
EmbosserWriternewLine in interface EmbosserWriterjava.io.IOExceptionpublic void newPage()
throws java.io.IOException
EmbosserWriternewPage in interface EmbosserWriterjava.io.IOExceptionpublic void newSectionAndPage(boolean duplex)
throws java.io.IOException
EmbosserWriternewSectionAndPage in interface EmbosserWriterjava.io.IOExceptionpublic void newVolumeSectionAndPage(boolean duplex)
throws java.io.IOException
EmbosserWriternewVolumeSectionAndPage in interface EmbosserWriterjava.io.IOExceptionpublic void open(boolean duplex)
throws java.io.IOException
EmbosserWriteropen in interface EmbosserWriterjava.io.IOException - if an I/O exception of some sort has occurredpublic void open(boolean duplex,
Contract contract)
throws java.io.IOException,
ContractNotSupportedException
EmbosserWriteropen in interface EmbosserWriterjava.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 implementationpublic boolean isOpen()
EmbosserWriterisOpen in interface EmbosserWriterpublic boolean isClosed()
EmbosserWriterisClosed in interface EmbosserWriterpublic void setRowGap(int value)
EmbosserWritersetRowGap in interface EmbosserWriterpublic int getRowGap()
EmbosserWritergetRowGap in interface EmbosserWriter