Nuxeo Enterprise Platform 5.4

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

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

public class FileBlob
extends Blob
implements HasFile

Author:
Bogdan Stefanescu

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

Constructor Detail

FileBlob

public FileBlob(java.io.File file)
Method Detail

getStream

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

getFile

public java.io.File getFile()
Specified by:
getFile in interface HasFile

getMimeTypeFromExtension

public static java.lang.String getMimeTypeFromExtension(java.lang.String path)

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.