Nuxeo ECM Projects 5.4.3-SNAPSHOT

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

java.lang.Object
  extended by org.nuxeo.ecm.automation.client.model.Blob
      extended by org.nuxeo.ecm.automation.client.model.FileBlob
All Implemented Interfaces:
Serializable, HasFile, OperationInput

public class FileBlob
extends Blob
implements HasFile

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Constructor Summary
FileBlob(File file)
           
 
Method Summary
 File getFile()
           
static String getMimeTypeFromExtension(String path)
           
 InputStream getStream()
           
 
Methods inherited from class org.nuxeo.ecm.automation.client.model.Blob
fromBase64String, fromBase64String, getFileName, getInputRef, getInputType, getLength, getMimeType, isBinary, setFileName, setMimeType, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileBlob

public FileBlob(File file)
Method Detail

getStream

public InputStream getStream()
                      throws IOException
Specified by:
getStream in class Blob
Throws:
IOException

getFile

public File getFile()
Specified by:
getFile in interface HasFile

getMimeTypeFromExtension

public static String getMimeTypeFromExtension(String path)

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.