public class DocumentBlob extends Object implements Serializable
Constructor and Description |
---|
DocumentBlob()
Empty ctor needed by tools like jaxb.
|
DocumentBlob(String name,
Blob blob) |
DocumentBlob(String name,
String encoding,
String mimeType,
String downloadUrl) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBlob()
Returns the actual blob as a serializable input stream.
|
String |
getDownloadUrl() |
String |
getEncoding()
Returns the encoding of the blob.
|
String[] |
getExtensions() |
String |
getMimetype()
Returns the main RFC-2046 mimetype name.
|
String |
getMimeType() |
String |
getName()
Returns the name of the document field name.
|
String |
getUrl() |
void |
setBlob(byte[] blob) |
void |
setEncoding(String encoding) |
void |
setExtensions(String[] extensions) |
void |
setMimetype(String mimeType) |
void |
setMimeType(String mimeType) |
void |
setName(String name) |
void |
setUrl(String url) |
public DocumentBlob()
public DocumentBlob(String name, Blob blob) throws IOException
IOException
public DocumentBlob(String name, String encoding, String mimeType, String downloadUrl)
public String getName()
We probably need to embed the name along with the schema prefix.
public String getMimetype()
public String getEncoding()
public byte[] getBlob()
public void setExtensions(String[] extensions)
public String[] getExtensions()
public void setBlob(byte[] blob)
public void setMimetype(String mimeType)
public void setEncoding(String encoding)
public String getDownloadUrl()
public String getMimeType()
public void setMimeType(String mimeType)
Copyright © 2018 Nuxeo. All rights reserved.