public class ResourceUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream inputStream,
OutputStream outputStream,
int bufSize)
Copy.
|
static org.osivia.portal.core.cms.CMSBinaryContent |
getBlobHolderContent(NuxeoController ctx,
String path,
String fileIndex)
Gets the blob holder content.
|
static org.osivia.portal.core.cms.CMSBinaryContent |
getCMSBinaryContent(NuxeoController ctx,
String path,
String fileIndex)
Gets the CMS binary content.
|
static org.osivia.portal.core.cms.CMSBinaryContent |
getPictureContent(NuxeoController ctx,
String path,
String content)
Gets the picture content.
|
static String |
getString(InputStream in,
String charSet)
Gets the string.
|
public static void copy(InputStream inputStream, OutputStream outputStream, int bufSize) throws IOException
inputStream - the input streamoutputStream - the output streambufSize - the buf sizeIOException - Signals that an I/O exception has occurred.public static String getString(InputStream in, String charSet) throws IOException
in - the incharSet - the char setIOException - Signals that an I/O exception has occurred.public static org.osivia.portal.core.cms.CMSBinaryContent getCMSBinaryContent(NuxeoController ctx, String path, String fileIndex) throws Exception
ctx - the ctxpath - the pathfileIndex - the file indexException - the exceptionpublic static org.osivia.portal.core.cms.CMSBinaryContent getPictureContent(NuxeoController ctx, String path, String content) throws Exception
ctx - the ctxpath - the pathcontent - the contentException - the exceptionpublic static org.osivia.portal.core.cms.CMSBinaryContent getBlobHolderContent(NuxeoController ctx, String path, String fileIndex) throws Exception
ctx - the ctxpath - the pathfileIndex - the file indexException - the exceptionCopyright © 2019. All rights reserved.