public class PrinterUtility
extends java.lang.Object
| Constructor and Description |
|---|
PrinterUtility() |
| Modifier and Type | Method and Description |
|---|---|
int |
writeLineBreaks(java.lang.StringBuffer stringBuffer,
int row,
java.lang.Integer rowPosition)
Checks if a linebreak is needed and prints it into the writer.
|
int |
writeSpaces(java.lang.StringBuffer stringBuffer,
int col,
java.lang.Integer colPosition)
Checks if spaces are needed and prints it into the writer.
|
public int writeSpaces(java.lang.StringBuffer stringBuffer,
int col,
java.lang.Integer colPosition)
col - the actual col in the row.colPosition - the col where we have to print.stringBuffer - the given stringBuffer to print in.public int writeLineBreaks(java.lang.StringBuffer stringBuffer,
int row,
java.lang.Integer rowPosition)
row - the actual row in the file.rowPosition - the row where we have to print.stringBuffer - the given stringBuffer to print in.