public class StrH
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StrH.StringPair |
| Modifier and Type | Field and Description |
|---|---|
static char |
BackSlashSeperator |
static char |
ForwardSlashSeperator |
| Constructor and Description |
|---|
StrH() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getAtomicName(java.lang.String name,
char seperator)
Gets the atomic name from a character separated full name.
|
static java.lang.String |
getAtomicNameFromPath(java.lang.String name)
Gets the atomic name from a file system path
|
static java.lang.String |
getPenultimateName(java.lang.String name,
char seperator)
Gets the penultimate name.
|
static java.lang.String |
getPenultimateNameFromPath(java.lang.String name)
Gets the penultimate name from a file system path.
|
static java.lang.StringBuilder |
pad(java.lang.StringBuilder sb,
java.lang.String newValue,
int length)
Pad string to width and add to StringBuilder.
|
static java.lang.String |
stripTrailingSeparator(java.lang.String value) |
static java.lang.StringBuilder |
tabToLevel(java.lang.StringBuilder sb,
int level,
boolean eol,
java.lang.Object... values)
Tab to level.
|
static java.lang.StringBuilder |
ttl(java.lang.StringBuilder sb,
int level,
java.lang.Object... values) |
public static final char ForwardSlashSeperator
public static final char BackSlashSeperator
public static java.lang.StringBuilder ttl(java.lang.StringBuilder sb,
int level,
java.lang.Object... values)
public static java.lang.StringBuilder tabToLevel(java.lang.StringBuilder sb,
int level,
boolean eol,
java.lang.Object... values)
sb - to add the values tolevel - number of tabseol - add eol at end of valuesvalues - list of values to addpublic static java.lang.StringBuilder pad(java.lang.StringBuilder sb,
java.lang.String newValue,
int length)
sb - to add newValue tonewValue - the newValue to be padded.length - desired length of newValuepublic static java.lang.String getAtomicName(java.lang.String name,
char seperator)
name - the fully distinguished nameseperator - the name space separatorpublic static java.lang.String getPenultimateName(java.lang.String name,
char seperator)
name - the nameseperator - the separatorpublic static java.lang.String getAtomicNameFromPath(java.lang.String name)
name - the namepublic static java.lang.String getPenultimateNameFromPath(java.lang.String name)
name - the namepublic static java.lang.String stripTrailingSeparator(java.lang.String value)