Package com.globalmentor.java
Class Appendables
- java.lang.Object
-
- com.globalmentor.java.Appendables
-
public class Appendables extends java.lang.Object
Utilities for working withAppendable
objects.- Author:
- Garret Wilson
- See Also:
Appendable
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <A extends java.lang.Appendable>
Aappend(A appendable, char character, int count)
Appends a given repetition of characters to an appendable.
-
-
-
Method Detail
-
append
public static <A extends java.lang.Appendable> A append(A appendable, char character, int count) throws java.io.IOException
Appends a given repetition of characters to an appendable.- Type Parameters:
A
- The appendable class.- Parameters:
appendable
- The appendable to which the characters should be appended.character
- The character to append.count
- The number of repetitions of the character.- Returns:
- The appendable with the appended repetitions of the character.
- Throws:
java.lang.NullPointerException
- if the given appendable isnull
.java.io.IOException
- if there is an error appending to the appendable.
-
-