Package org.nuxeo.client.objects.blob
Class FileBlob
- java.lang.Object
-
- org.nuxeo.client.objects.blob.AbstractBlob
-
- org.nuxeo.client.objects.blob.FileBlob
-
- All Implemented Interfaces:
java.io.Serializable,Blob
- Direct Known Subclasses:
FileStreamBlob
public class FileBlob extends AbstractBlob
- Since:
- 0.1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.FilefileNon-final since bridge for backward compatibility.-
Fields inherited from class org.nuxeo.client.objects.blob.AbstractBlob
filename, length, mimeType
-
-
Constructor Summary
Constructors Modifier Constructor Description FileBlob(java.io.File file)FileBlob(java.io.File file, java.lang.String filename)FileBlob(java.io.File file, java.lang.String filename, java.lang.String mediaType)protectedFileBlob(java.lang.String filename, java.lang.String mediaType, long length)Deprecated.since 3.1, used to create a bridge for backward compatibility in NuxeoResponseConverter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringformatLength(long len)java.io.FilegetFile()java.io.InputStreamgetStream()java.lang.StringtoString()voidtrack()-
Methods inherited from class org.nuxeo.client.objects.blob.AbstractBlob
getContentLength, getFilename, getLength, getMimeType
-
-
-
-
Constructor Detail
-
FileBlob
@Deprecated protected FileBlob(java.lang.String filename, java.lang.String mediaType, long length)Deprecated.since 3.1, used to create a bridge for backward compatibility in NuxeoResponseConverter- Since:
- 3.1
-
FileBlob
public FileBlob(java.io.File file)
-
FileBlob
public FileBlob(java.io.File file, java.lang.String filename)
-
FileBlob
public FileBlob(java.io.File file, java.lang.String filename, java.lang.String mediaType)
-
-
Method Detail
-
getStream
public java.io.InputStream getStream() throws java.io.IOException- Throws:
java.io.IOException
-
getFile
public java.io.File getFile()
-
track
public void track()
-
formatLength
protected java.lang.String formatLength(long len)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-