|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.bea.content.manager.ContentHelper
public class 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 String toHTML(String in)
This will replace the characters '&', '"', '<', and '>' with '&', "', '<', and '>', respectively.
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.
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||