|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.modules.output.pageable.plaintext.driver.TextFilePrinterDriver
public class TextFilePrinterDriver
This printer driver will ignore all TextChunk encodings, as it makes no sense to have more than one encoding type in a plain text file.
| Constructor Summary | |
|---|---|
TextFilePrinterDriver(OutputStream out,
float charsPerInch,
float linesPerInch)
|
|
TextFilePrinterDriver(OutputStream out,
float charsPerInch,
float linesPerInch,
boolean unixEndOfLine)
|
|
| 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. |
char[] |
getEndOfLine()
|
char[] |
getEndOfPage()
|
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[] raw)
Prints some raw content. |
void |
setEndOfLine(char[] endOfLine)
|
void |
setEndOfPage(char[] endOfPage)
|
void |
startLine()
Starts a new line. |
void |
startPage(Paper paper,
String encoding)
Resets the printer and starts a new page. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextFilePrinterDriver(OutputStream out,
float charsPerInch,
float linesPerInch)
public TextFilePrinterDriver(OutputStream out,
float charsPerInch,
float linesPerInch,
boolean unixEndOfLine)
| Method Detail |
|---|
public void endLine(boolean overflow)
throws IOException
endLine in interface PrinterDriveroverflow -
IOException - if an IOError occures.
public void endPage(boolean overflow)
throws IOException
endPage in interface PrinterDriveroverflow -
IOException - if there was an IOError while writing the command
public void flush()
throws IOException
flush in interface PrinterDriverIOException - if an IOError occured.public float getCharactersPerInch()
getCharactersPerInch in interface PrinterDriverpublic float getLinesPerInch()
getLinesPerInch in interface PrinterDriver
public void printChunk(PlaintextDataChunk chunk)
throws IOException
printChunk in interface PrinterDriverchunk - the chunk that should be written
IOException - if an IO error occured.
public void printEmptyChunk(int count)
throws IOException
printEmptyChunk in interface PrinterDriverIOException - if an IOError occured.
public void printRaw(byte[] raw)
throws IOException
printRaw in interface PrinterDriverraw - the content that should be printed.
IOException
public void startLine()
throws IOException
startLine in interface PrinterDriverIOException - if an IOError occures.
public void startPage(Paper paper,
String encoding)
throws IOException
startPage in interface PrinterDriverIOException - if there was an IOError while writing the commandpublic char[] getEndOfLine()
public void setEndOfLine(char[] endOfLine)
public char[] getEndOfPage()
public void setEndOfPage(char[] endOfPage)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||