public class StringBlob extends Blob
| Constructor and Description |
|---|
StringBlob(String content) |
StringBlob(String fileName,
String content)
Creates a
StringBlob that is used in the Blob.Attach call |
StringBlob(String fileName,
String content,
String mimeType)
Creates a
StringBlob that is used in the Blob.Attach call |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharset() |
int |
getLength() |
InputStream |
getStream() |
void |
setCharset(String charset)
Set the charset to be used when to transform the content into a byte stream.
|
String |
toString() |
fromBase64String, fromBase64String, getFileName, getInputRef, getInputType, getMimeType, isBinary, setFileName, setMimeTypepublic StringBlob(String content)
public StringBlob(String fileName, String content)
StringBlob that is used in the Blob.Attach callfileName - Name that is used to save the file ascontent - Base64 encoded contentpublic void setCharset(String charset)
charset - public String getCharset()
public InputStream getStream() throws IOException
getStream in class BlobIOExceptionCopyright © 2015 Nuxeo SA. All rights reserved.