|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.ltdt.label.reformat.LabelReformatter
public class LabelReformatter
Class to reformat a PDS label so that it will have the following characteristics:
Constructor Summary | |
---|---|
LabelReformatter()
|
Method Summary | |
---|---|
int |
getMaxIdentifierLength(java.util.List prettyStatements,
short indent)
Get the longest identifier length out of the given list of statements. |
java.io.ByteArrayOutputStream |
reformat(java.io.InputStream label)
Return a stream representation of a reformatted PDS label, where the max position of the '=' will be up to a default position of 40. |
java.io.ByteArrayOutputStream |
reformat(java.io.InputStream label,
int maxEquals)
Return a stream that contains a reformatted label, where all equals sign are aligned and all groups and objects are indented. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelReformatter()
Method Detail |
---|
public java.io.ByteArrayOutputStream reformat(java.io.InputStream label) throws java.io.IOException
label
- A stream representation of the PDS label.
java.io.IOException
public java.io.ByteArrayOutputStream reformat(java.io.InputStream label, int maxEquals) throws java.io.IOException
label
- A stream representation of the PDS label.maxEquals
- The maximum position of the '='.
java.io.IOException
public int getMaxIdentifierLength(java.util.List prettyStatements, short indent)
prettyStatements
- The list of PrettyStatement objects.indent
- The number of spaces that the statement will be indented.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |