当前页面:
在线文档首页 >
JBOSS Portal 2.6 API 英文版文档
FileUtil - JBOSS Portal 2.6 API 英文版文档
org.jboss.portal.cms.util
Class FileUtil
java.lang.Object
org.jboss.portal.cms.util.FileUtil
- public class FileUtil
- extends java.lang.Object
Helper class for file functions.
- Author:
- Roy Russo
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 |
BUFFER_SIZE
private static int BUFFER_SIZE
FileUtil
public FileUtil()
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)