org.nuxeo.ecm.automation.client.model
Class FileBlob
java.lang.Object
org.nuxeo.ecm.automation.client.model.Blob
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
Methods inherited from class org.nuxeo.ecm.automation.client.model.Blob |
fromBase64String, fromBase64String, getFileName, getInputRef, getInputType, getLength, getMimeType, isBinary, setFileName, setMimeType, toString |
FileBlob
public FileBlob(File file)
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)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.