站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

FileUtil - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.cms.util
Class FileUtil

java.lang.Object
  extended byorg.jboss.portal.cms.util.FileUtil

public class FileUtil
extends java.lang.Object

Helper class for file functions.


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)