public class StringBlob extends Blob
| Modifier and Type | Field and Description |
|---|---|
protected String |
charset |
protected String |
content
content
|
| 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() |
formatLength, 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 StringBlob(String fileName, String content, String mimeType)
StringBlob that is used in the Blob.Attach callfileName - Name that is used to save the file ascontent - Base64 encoded contentmimeType - Mime type to use for this contentpublic void setCharset(String charset)
charset - public String getCharset()
public InputStream getStream() throws IOException
getStream in class BlobIOExceptionCopyright © 2016 Nuxeo SA. All rights reserved.