org.biojava3.core.util
Class StringManipulationHelper
java.lang.Object
org.biojava3.core.util.StringManipulationHelper
public class StringManipulationHelper
- extends java.lang.Object
A utility class for common String manipulation tasks.
All functions are static methods.
- Author:
- Amr AL-Hossary
|
Method Summary |
static java.lang.String |
convertStreamToString(java.io.InputStream stream)
|
static boolean |
equalsToIgnoreEndline(java.lang.String expected,
java.lang.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(java.lang.String expected,
java.lang.String actual)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
convertStreamToString
public static java.lang.String convertStreamToString(java.io.InputStream stream)
- Parameters:
stream -
- Returns:
equalsToIgnoreEndline
public static boolean equalsToIgnoreEndline(java.lang.String expected,
java.lang.String actual)
- 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
public static boolean equalsToXml(java.lang.String expected,
java.lang.String actual)