public class ContentFileImpl extends ContentImpl implements ContentFile
Modifier and Type | Field and Description |
---|---|
protected File |
file
The file.
|
fileName, length, mimeType
Constructor and Description |
---|
ContentFileImpl()
Instantiates a new content file impl.
|
ContentFileImpl(File f)
Init a contentFile based on local file.
|
ContentFileImpl(File f,
String filename,
String mimetype)
Init a contentFile based on local file and redefine default mimetype and
filename associated.
|
Modifier and Type | Method and Description |
---|---|
void |
fileReadCallback(int nBytes)
Callback for receiving progress feedback during transfer of the ContentFile.
|
void |
fileWriteCallback(int nBytes)
Callback for receiving progress feedback during transfer of the ContentFile.
|
File |
getFile()
Gets the file.
|
getFileName, getLength, getMimeType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFileName, getLength, getMimeType
protected File file
public ContentFileImpl()
public ContentFileImpl(File f)
f
- : file inside a device filesystem.public ContentFileImpl(File f, String filename, String mimetype)
f
- : File inside a device filesystemfilename
- : New name of the filemimetype
- : mimetype associated to the file.public File getFile()
getFile
in interface ContentFile
public void fileReadCallback(int nBytes) throws IOException
fileReadCallback
in interface ContentFile
nBytes
- : Number of bytes read.IOException
public void fileWriteCallback(int nBytes)
fileWriteCallback
in interface ContentFile
nBytes
- : Number of bytes written.Copyright © 2012-2018 Alfresco Software. All Rights Reserved.