Package org.biojava.nbio.core.util
Class StringManipulationHelper
java.lang.Object
org.biojava.nbio.core.util.StringManipulationHelper
A utility class for common
String
manipulation tasks.
All functions are static methods.- Author:
- Amr AL-Hossary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
static String
-
Method Details
-
convertStreamToString
- Parameters:
stream
-- Returns:
-
equalsToIgnoreEndline
compares two strings for equality, line by line, ignoring any difference of end line delimiters contained within the 2 Strings. This method should be used if and only if two Strings are considered identical when all nodes are identical including their relative order. Generally useful when asserting identity of automatically regenerated XML or PDB.- Parameters:
expected
-actual
-
-
equalsToXml
-
padLeft
-
padRight
-
join
-