public class Utils
extends java.lang.Object
| Constructor | Description |
|---|---|
Utils() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
padLeft(java.io.Writer output,
java.lang.String s,
int width) |
Pads a string with blanks on the left.
|
static void |
padRight(java.io.Writer output,
java.lang.String s,
int width) |
Pads a string with blanks on the right.
|
public static void padRight(java.io.Writer output,
java.lang.String s,
int width)
throws java.io.IOException
s - the string to padwidth - the width to pad tojava.io.IOExceptionpublic static void padLeft(java.io.Writer output,
java.lang.String s,
int width)
throws java.io.IOException
s - the string to padwidth - the width to pad tojava.io.IOExceptionCopyright © 2019. All Rights Reserved.