public interface PrinterDriver
Modifier and Type | Method and Description |
---|---|
void |
endLine(boolean overflow)
Ends a new line.
|
void |
endPage(boolean overflow)
Ends the current page.
|
void |
flush()
Flushes the output stream.
|
float |
getCharactersPerInch()
Gets the default character width in CPI.
|
float |
getLinesPerInch()
Gets the default line height.
|
void |
printChunk(PlaintextDataChunk chunk)
Prints a single text chunk at the given position on the current line.
|
void |
printEmptyChunk(int count)
Prints an empty chunk.
|
void |
printRaw(byte[] out)
Prints some raw content.
|
void |
startLine()
Starts a new line.
|
void |
startPage(Paper paper,
String encoding)
Resets the printer and starts a new page.
|
float getCharactersPerInch()
float getLinesPerInch()
void startPage(Paper paper, String encoding) throws IOException
IOException
- if there was an IOError while writing the commandvoid endPage(boolean overflow) throws IOException
overflow
- IOException
- if there was an IOError while writing the commandvoid startLine() throws IOException
IOException
- if an IOError occures.void endLine(boolean overflow) throws IOException
overflow
- IOException
- if an IOError occures.void printChunk(PlaintextDataChunk chunk) throws IOException
chunk
- the chunk that should be writtenIOException
- if an IO error occured.void printEmptyChunk(int count) throws IOException
IOException
- if an IOError occured.void flush() throws IOException
IOException
- if an IOError occured.void printRaw(byte[] out) throws IOException
out
- the content that should be printed.IOException
Copyright © 2017 Hitachi Vantara. All rights reserved.