eXo Kernel :: Container 2.5.1-GA

org.exoplatform.container.util
Class Utils

java.lang.Object
  extended by org.exoplatform.container.util.Utils

public class Utils
extends Object

Version:
$Id$
Author:
Nicolas Filotto

Method Summary
static String getPathOnly(String fullPath)
          Extracts the path section of the given full path which syntax is [path][?query][#fragment]
static String readStream(InputStream inputStream)
          Loads the given stream into memory, returns its content as String and finally close the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readStream

public static String readStream(InputStream inputStream)
                         throws IOException
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

public static String getPathOnly(String fullPath)
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

eXo Kernel :: Container 2.5.1-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.