|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PrinterDriver
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 written
IOException
- 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |