|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jindent.Formatter
public class Formatter
The Jindent formatter module. This class can be used to format from a Reader to Writer or just to format Strings.
Method Summary | |
---|---|
void |
format(Reader in,
Writer out)
Formats a String. |
String |
format(String input)
Formats a String. |
MessageList |
getMessageList()
Returns the message list. |
Settings |
getSettings()
Gets Jindent settings. |
void |
setSettings(Settings settings)
Sets Jindent settings. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void setSettings(Settings settings)
settings
- Jindent settingspublic Settings getSettings()
public String format(String input) throws JindentException
input
- input source code
JindentException
- if anything went wrong while formattingpublic void format(Reader in, Writer out) throws JindentException
in
- Reader pointing to source code inputout
- Writer where the formatted output will be written to
JindentException
- if anything went wrong while formattingpublic MessageList getMessageList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |