public class JCRFileContent extends Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.jcr.Node |
contentNode |
protected static org.slf4j.Logger |
LOGGER |
protected JCRNodeWrapper |
node |
protected javax.jcr.Node |
objectNode |
| Constructor and Description |
|---|
JCRFileContent(JCRNodeWrapper node,
javax.jcr.Node objectNode) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
downloadFile() |
long |
getContentLength() |
protected javax.jcr.Node |
getContentNode() |
String |
getContentType() |
String |
getEncoding()
The encoding is an optional property, can be null.
|
String |
getExtractedText() |
String |
getText() |
boolean |
isImage() |
void |
uploadFile(InputStream is,
String contentType) |
protected static final org.slf4j.Logger LOGGER
protected JCRNodeWrapper node
protected javax.jcr.Node objectNode
protected javax.jcr.Node contentNode
public JCRFileContent(JCRNodeWrapper node, javax.jcr.Node objectNode)
public InputStream downloadFile()
public void uploadFile(InputStream is, String contentType)
public String getContentType()
public String getEncoding()
public long getContentLength()
protected javax.jcr.Node getContentNode()
throws javax.jcr.PathNotFoundException,
javax.jcr.RepositoryException
javax.jcr.PathNotFoundExceptionjavax.jcr.RepositoryExceptionpublic String getExtractedText()
public boolean isImage()
public String getText()
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.