|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.util.TwoColumnOutput
public final class TwoColumnOutput
Class that takes a combined output destination and provides two output writers, one of which ends up writing to the left column and one which goes on the right.
| Constructor Summary | |
|---|---|
TwoColumnOutput(OutputStream out,
int leftWidth,
int rightWidth,
String spacer)
Constructs an instance. |
|
TwoColumnOutput(Writer out,
int leftWidth,
int rightWidth,
String spacer)
Constructs an instance. |
|
| Method Summary | |
|---|---|
void |
flush()
Flushes the output. |
Writer |
getLeft()
Gets the writer to use to write to the left column. |
Writer |
getRight()
Gets the writer to use to write to the right column. |
static String |
toString(String s1,
int width1,
String spacer,
String s2,
int width2)
Turns the given two strings (with widths) and spacer into a formatted two-column string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TwoColumnOutput(Writer out,
int leftWidth,
int rightWidth,
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 columns
public TwoColumnOutput(OutputStream out,
int leftWidth,
int rightWidth,
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| Method Detail |
|---|
public static String toString(String s1,
int width1,
String spacer,
String s2,
int width2)
s1 - non-null; first stringwidth1 - > 0; width of the first columnspacer - non-null; spacer strings2 - non-null; second stringwidth2 - > 0; width of the second column
non-null; an appropriately-formatted stringpublic Writer getLeft()
non-null; the left column writerpublic Writer getRight()
non-null; the right column writerpublic void flush()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||