Package io.milton.httpclient
Class File
java.lang.Object
io.milton.httpclient.Resource
io.milton.httpclient.File
- Author:
- mcevoyb
-
Field Summary
FieldsFields inherited from class io.milton.httpclient.Resource
displayName, name, parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddownload(OutputStream out, ProgressListener listener) voiddownload(OutputStream out, ProgressListener listener, List<Range> rangeList) downloadTo(File destFolder, ProgressListener listener) voiddownloadToFile(File dest, ProgressListener listener) getEtag()voidsetContent(InputStream in, Long contentLength, ProgressListener listener) toString()Methods inherited from class io.milton.httpclient.Resource
addListener, copyTo, copyTo, decodePath, delete, encodedName, finalize, getCount, getCreatedDate, getLockOwner, getLockToken, getModifiedDate, host, href, lock, lock, moveTo, moveTo, path, post, removeListener, rename, unlock
-
Field Details
-
contentType
-
contentLength
-
-
Constructor Details
-
File
-
File
-
-
Method Details
-
setContent
public void setContent(InputStream in, Long contentLength, ProgressListener listener) throws IOException, HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException -
toString
-
downloadTo
public File downloadTo(File destFolder, ProgressListener listener) throws IOException, HttpException - Specified by:
downloadToin classResource- Throws:
IOExceptionHttpException
-
downloadToFile
public void downloadToFile(File dest, ProgressListener listener) throws FileNotFoundException, HttpException, Utils.CancelledException -
download
public void download(OutputStream out, ProgressListener listener) throws HttpException, Utils.CancelledException -
download
public void download(OutputStream out, ProgressListener listener, List<Range> rangeList) throws HttpException, Utils.CancelledException -
encodedUrl
- Specified by:
encodedUrlin classResource
-
getEtag
-