public final class TwoColumnOutput
extends java.lang.Object
| Constructor and Description |
|---|
TwoColumnOutput(java.io.OutputStream out,
int leftWidth,
int rightWidth,
java.lang.String spacer)
Constructs an instance.
|
TwoColumnOutput(java.io.Writer out,
int leftWidth,
int rightWidth,
java.lang.String spacer)
Constructs an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(java.lang.String left,
java.lang.String right) |
public TwoColumnOutput(@Nonnull
java.io.Writer out,
int leftWidth,
int rightWidth,
@Nonnull
java.lang.String spacer)
out - non-null; writer to send final output toleftWidth - > 0; width of the left column, in charactersrightWidth - > 0; width of the right column, in charactersspacer - non-null; spacer string to sit between the two columnspublic TwoColumnOutput(java.io.OutputStream out,
int leftWidth,
int rightWidth,
java.lang.String spacer)
out - non-null; stream to send final output toleftWidth - >= 1; width of the left column, in charactersrightWidth - >= 1; width of the right column, in charactersspacer - non-null; spacer string to sit between the two columns