public abstract class Blob extends Object implements OperationInput
Modifier and Type | Field and Description |
---|---|
protected String |
fileName |
protected String |
mimeType |
Modifier | Constructor and Description |
---|---|
protected |
Blob() |
|
Blob(String fileName) |
|
Blob(String fileName,
String mimeType) |
Modifier and Type | Method and Description |
---|---|
protected String |
formatLength(int len) |
static Blob |
fromBase64String(String fileName,
String content) |
static Blob |
fromBase64String(String fileName,
String content,
String mimeType) |
String |
getFileName() |
String |
getInputRef() |
String |
getInputType() |
int |
getLength() |
String |
getMimeType() |
abstract InputStream |
getStream() |
boolean |
isBinary() |
void |
setFileName(String fileName) |
void |
setMimeType(String mimeType) |
String |
toString() |
protected Blob()
public static Blob fromBase64String(String fileName, String content)
public static Blob fromBase64String(String fileName, String content, String mimeType)
public String getMimeType()
public String getFileName()
public void setFileName(String fileName)
public void setMimeType(String mimeType)
public int getLength()
public String getInputType()
getInputType
in interface OperationInput
public String getInputRef()
getInputRef
in interface OperationInput
public boolean isBinary()
isBinary
in interface OperationInput
public abstract InputStream getStream() throws IOException
IOException
protected String formatLength(int len)
Copyright © 2018 Nuxeo. All rights reserved.