public class FileBlob extends AbstractBlob
| Modifier and Type | Field and Description |
|---|---|
protected File |
file
Non-final since bridge for backward compatibility.
|
filename, length, mimeType| Modifier | Constructor and Description |
|---|---|
|
FileBlob(File file) |
|
FileBlob(File file,
String filename) |
|
FileBlob(File file,
String filename,
String mediaType) |
protected |
FileBlob(String filename,
String mediaType,
long length)
Deprecated.
since 3.1, used to create a bridge for backward compatibility in NuxeoResponseConverter
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
formatLength(long len) |
File |
getFile() |
InputStream |
getStream() |
String |
toString() |
void |
track() |
getContentLength, getFilename, getLength, getMimeTypeprotected File file
@Deprecated protected FileBlob(String filename, String mediaType, long length)
public FileBlob(File file)
public InputStream getStream() throws IOException
IOExceptionpublic File getFile()
public void track()
protected String formatLength(long len)
Copyright © 2018 Nuxeo. All rights reserved.