|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bea.content.manager.ContentHelper
Helper class for dealing with Content
Constructor Summary | |
ContentHelper()
|
Method Summary | |
static String |
pathInfoEncode(String pathInfo)
Correctly URLEncode a path-info string. |
static byte[] |
toByteArray(InputStream inputStream)
Converts an InputStream to a byte[]. |
static byte[] |
toByteArray(InputStream inputStream,
int maxSize)
Converts an InputStream to a byte[]. |
static byte[] |
toByteArray(InputStream inputStream,
long start,
long length)
Converts an InputStream to a byte[]. |
static String |
toHTML(String in)
Convert an arbitrary string to HTML which will display as the original string intended. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContentHelper()
Method Detail |
public static String pathInfoEncode(String pathInfo)
This can be used to pass a contentId as Path-Info to the ShowDocServlet.
This will url encode the pathInfo, but will leave "/"'s alone.
public static byte[] toByteArray(InputStream inputStream)
inputStream
- - the InputStream to convert to the byte[].
public static byte[] toByteArray(InputStream inputStream, int maxSize) throws RepositoryException
inputStream
- - the InputStream to convert to the byte[].
RepositoryException
public static byte[] toByteArray(InputStream inputStream, long start, long length)
inputStream
- - the InputStream to convert to the byte[].start
- - the index to start at.length
- - the index to end at.
public static String toHTML(String in)
This will replace the characters '&', '"', '<', and '>' with '&', "', '<', and '>', respectively.
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |