Class StreamUtility


  • public final class StreamUtility
    extends Object

    Class which defines various utility methods which operates principally around various instances of Stream.

    Since:
    3.0.0
    • Method Detail

      • skipUnicodeByteOrderMark

        public static String skipUnicodeByteOrderMark​(String str)

        Removes any Unicode byte order marks from the specified string.

        Parameters:
        str - the string to remove byte order marks from
        Returns:
        a String having the contents of the specified string, without any byte order marks
        See Also:
        skipUnicodeByteOrderMark(InputStream)
      • skipUnicodeByteOrderMark

        public static String skipUnicodeByteOrderMark​(InputStream stream)

        Removes any Unicode byte order marks from the specified stream.

        Parameters:
        stream - the stream to remove byte order marks from
        Returns:
        a String having the contents of the specified stream, without any byte order marks