public class StringManipulationHelper extends Object
String
manipulation tasks.
All functions are static methods.Modifier and Type | Method and Description |
---|---|
static String |
convertStreamToString(InputStream stream) |
static boolean |
equalsToIgnoreEndline(String expected,
String actual)
compares two strings for equality, line by line, ignoring any difference
of end line delimiters contained within the 2 Strings.
|
static boolean |
equalsToXml(String expected,
String actual) |
static String |
join(AbstractCollection<String> s,
String delimiter) |
static String |
padLeft(String s,
int n) |
static String |
padRight(String s,
int n) |
public static String convertStreamToString(InputStream stream)
stream
- public static boolean equalsToIgnoreEndline(String expected, String actual)
expected
- actual
- public static boolean equalsToXml(String expected, String actual)
public static String join(AbstractCollection<String> s, String delimiter)
Copyright © 2000–2018 BioJava. All rights reserved.