Package org.exoplatform.container.util
Class Utils
java.lang.Object
org.exoplatform.container.util.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetPathOnly(String fullPath) Extracts the path section of the given full path which syntax is [path][?query][#fragment]static StringreadStream(InputStream inputStream) Loads the given stream into memory, returns its content as String and finally close the stream.
-
Method Details
-
readStream
Loads the given stream into memory, returns its content as String and finally close the stream.- Throws:
IOException- if the stream could not be loaded
-
getPathOnly
Extracts the path section of the given full path which syntax is [path][?query][#fragment]- Parameters:
fullPath- the full path from which we need to extract the path section- Returns:
- the path section
-