Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.automation.client.model
Class Blob

java.lang.Object
  extended by org.nuxeo.ecm.automation.client.model.Blob
All Implemented Interfaces:
Serializable, OperationInput
Direct Known Subclasses:
BlobRef, FileBlob, StreamBlob, StringBlob

public abstract class Blob
extends Object
implements OperationInput

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Constructor Summary
Blob(String fileName)
           
Blob(String fileName, String mimeType)
           
 
Method Summary
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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Blob

public Blob(String fileName)

Blob

public Blob(String fileName,
            String mimeType)
Method Detail

fromBase64String

public static Blob fromBase64String(String fileName,
                                    String content)

fromBase64String

public static Blob fromBase64String(String fileName,
                                    String content,
                                    String mimeType)

getMimeType

public String getMimeType()

getFileName

public String getFileName()

setFileName

public void setFileName(String fileName)

setMimeType

public void setMimeType(String mimeType)

getLength

public int getLength()

getInputType

public String getInputType()
Specified by:
getInputType in interface OperationInput

getInputRef

public String getInputRef()
Specified by:
getInputRef in interface OperationInput

isBinary

public boolean isBinary()
Specified by:
isBinary in interface OperationInput

getStream

public abstract InputStream getStream()
                               throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.