Class StreamUtil
java.lang.Object
com.day.cq.wcm.designimporter.util.StreamUtil
Class for stream related utility methods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetEncoding(InputStream stream) Determines the encoding in the passed html document stream by peeking into the <meta> tags or the xml declaration if it's an xhtml document
-
Constructor Details
-
StreamUtil
public StreamUtil()
-
-
Method Details
-
getEncoding
Determines the encoding in the passed html document stream by peeking into the <meta> tags or the xml declaration if it's an xhtml document- Parameters:
stream- The InputStream of the HTML document being imported- Returns:
- The determined charset
- Throws:
IOException
-