public class UploadableFile extends Object implements Uploadable
| Modifier and Type | Field and Description |
|---|---|
protected FileObject |
file |
protected String |
filename |
protected long |
filesize |
protected File |
source |
| Constructor and Description |
|---|
UploadableFile(FilesCollection files,
FileObject file) |
UploadableFile(File source,
String target) |
UploadableFile(File source,
String target,
String permissions) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename() |
long |
getFilesize() |
InputStream |
getInputStream() |
String |
getPermissions() |
String |
toString() |
protected void |
updateFilesize() |
protected FileObject file
protected String filename
protected File source
protected long filesize
public UploadableFile(FilesCollection files, FileObject file)
protected void updateFilesize()
public long getFilesize()
getFilesize in interface Uploadablepublic String getFilename()
getFilename in interface Uploadablepublic String getPermissions()
getPermissions in interface Uploadablepublic InputStream getInputStream() throws IOException
getInputStream in interface UploadableIOExceptionCopyright © 2014–2022 ImageJ. All rights reserved.