org.jboss.portal.cms.util
Class FileUtil

java.lang.Object
  extended by org.jboss.portal.cms.util.FileUtil

public class FileUtil
extends java.lang.Object

Helper class for file functions.

Author:
Roy Russo

Constructor Summary
FileUtil()
           
 
Method Summary
static java.lang.String cleanDoubleSlashes(java.lang.String sPath)
           
static byte[] getBytes(java.io.InputStream inputStream)
          Generic bytestream util that returns a byte array from an InputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

getBytes

public static byte[] getBytes(java.io.InputStream inputStream)
Generic bytestream util that returns a byte array from an InputStream.

Parameters:
inputStream -
Returns:
byte array from stream

cleanDoubleSlashes

public static java.lang.String cleanDoubleSlashes(java.lang.String sPath)