public class Formatters
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static char[] |
hexDigits |
Constructor and Description |
---|
Formatters() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
format(java.lang.String in)
This method converts the non-ASCII characters in the input
parameter to unicode escape sequences.
|
static java.lang.String |
padString(java.lang.String oldValue,
int size)
Pads out a string to the specified size
|
static java.lang.String |
repeatChar(java.lang.String c,
int repeatCount)
repeatChar is used to create strings of varying lengths.
|
public static java.lang.String format(java.lang.String in)
in
- String to formatpublic static java.lang.String repeatChar(java.lang.String c, int repeatCount)
c
- character to repeatrepeatCount
- Number of times to repeat characterpublic static java.lang.String padString(java.lang.String oldValue, int size)
oldValue
- value to be paddedsize
- size of resulting stringApache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.