net.sf.mmm.util.text.api
Interface Justification

All Known Implementing Classes:
JustificationImpl

public interface Justification

This is the interface for a specific justification. See JustificationBuilder for details.

Since:
1.1.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Method Summary
 String justify(CharSequence value)
          This method applies the justification to the given value and returns the result.
 void justify(CharSequence value, Appendable target)
          This method applies the justification to the given value and appends the result to the given target.
 

Method Detail

justify

void justify(CharSequence value,
             Appendable target)
             throws IOException
This method applies the justification to the given value and appends the result to the given target.

Parameters:
value - is the string to justify.
target - is where to append the justified data.
Throws:
IOException - if caused by Appendable.append(CharSequence).

justify

String justify(CharSequence value)
This method applies the justification to the given value and returns the result.

Parameters:
value - is the string to justify.
Returns:
the justified string.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.