public class File extends Resource
| Modifier and Type | Field and Description |
|---|---|
Long |
contentLength |
String |
contentType |
displayName, name, parent| Constructor and Description |
|---|
File(Folder parent,
PropFindResponse resp) |
File(Folder parent,
String name,
String contentType,
Long contentLength,
String etag) |
| Modifier and Type | Method and Description |
|---|---|
void |
download(OutputStream out,
ProgressListener listener) |
void |
download(OutputStream out,
ProgressListener listener,
List<Range> rangeList) |
File |
downloadTo(File destFolder,
ProgressListener listener) |
void |
downloadToFile(File dest,
ProgressListener listener) |
String |
encodedUrl() |
String |
getEtag() |
void |
setContent(InputStream in,
Long contentLength,
ProgressListener listener) |
String |
toString() |
addListener, copyTo, copyTo, decodePath, delete, encodedName, finalize, getCount, getCreatedDate, getLockOwner, getLockToken, getModifiedDate, host, href, lock, lock, moveTo, moveTo, path, post, removeListener, rename, unlockpublic File(Folder parent, PropFindResponse resp)
public void setContent(InputStream in, Long contentLength, ProgressListener listener) throws IOException, HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException
public File downloadTo(File destFolder, ProgressListener listener) throws IOException, HttpException
downloadTo in class ResourceIOExceptionHttpExceptionpublic void downloadToFile(File dest, ProgressListener listener) throws FileNotFoundException, HttpException, Utils.CancelledException
public void download(OutputStream out, ProgressListener listener) throws HttpException, Utils.CancelledException
public void download(OutputStream out, ProgressListener listener, List<Range> rangeList) throws HttpException, Utils.CancelledException
public String encodedUrl()
encodedUrl in class Resourcepublic String getEtag()
Copyright © 2021 McEvoy Software Ltd. All rights reserved.