aQute.lib.justif
Class Justif

java.lang.Object
  extended by aQute.lib.justif.Justif

public class Justif
extends Object

Formatter. This formatter allows you to build up an input string and then wraps the text. The following markup is available


Constructor Summary
Justif()
           
Justif(int width, int... tabs)
           
 
Method Summary
 void entry(String key, String separator, Object value)
           
 Formatter formatter()
           
 void indent(int indent, String string)
           
 void table(Map<String,Object> table, String separator)
           
 String toString()
           
 String toString(Object o)
           
 String wrap()
           
 void wrap(StringBuilder sb)
          Routine to wrap a stringbuffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Justif

public Justif(int width,
              int... tabs)

Justif

public Justif()
Method Detail

wrap

public void wrap(StringBuilder sb)
Routine to wrap a stringbuffer. Basically adds line endings but has the following control characters:

Parameters:
sb -

wrap

public String wrap()

formatter

public Formatter formatter()

toString

public String toString()
Overrides:
toString in class Object

indent

public void indent(int indent,
                   String string)

entry

public void entry(String key,
                  String separator,
                  Object value)

table

public void table(Map<String,Object> table,
                  String separator)

toString

public String toString(Object o)


Copyright © 2014 aQute SARL. All rights reserved.