org.nuxeo.ecm.automation.client.model
Class StringBlob
java.lang.Object
org.nuxeo.ecm.automation.client.model.Blob
org.nuxeo.ecm.automation.client.model.StringBlob
- All Implemented Interfaces:
- Serializable, OperationInput
public class StringBlob
- extends Blob
An in memory bob containing a string.
- Author:
- bstefanescu
- See Also:
- Serialized Form
StringBlob
public StringBlob(String content)
StringBlob
public StringBlob(String fileName,
String content)
- Creates a
StringBlob
that is used in the Blob.Attach call
- Parameters:
fileName
- Name that is used to save the file ascontent
- Base64 encoded content
StringBlob
public StringBlob(String fileName,
String content,
String mimeType)
- Creates a
StringBlob
that is used in the Blob.Attach call
- Parameters:
fileName
- Name that is used to save the file ascontent
- Base64 encoded contentmimeType
- Mime type to use for this content
setCharset
public void setCharset(String charset)
- Set the charset to be used when to transform the content into a byte stream.
If npt specified the default charset will be used.
- Parameters:
charset
-
getCharset
public String getCharset()
getStream
public InputStream getStream()
throws IOException
- Specified by:
getStream
in class Blob
- Throws:
IOException
toString
public String toString()
- Overrides:
toString
in class Blob
Copyright © 2011 Nuxeo SAS. All Rights Reserved.