@Deprecated public class FileService extends EvrythngServiceBase
| Constructor and Description |
|---|
FileService(ApiManager api)
Deprecated.
use
FilesService instead. |
absoluteUri, delete, deleteMultiple, encodeBase64, get, getConfig, iterator, mqttUrl, onBuilderCreated, post, post, postAsynchronously, postMultipart, postMultipart, put, put, putMultipart, putMultipart, putMultiple, urlEncodePathPart@Deprecated public FileService(ApiManager api)
FilesService instead.api - ApiManager instance@Deprecated public EvrythngApiBuilder.Builder<List<File>> filesReader(String after) throws EvrythngClientException
FilesService.filesReader(String) instead.after - find files starting from file name after or if null find from the beginning.EvrythngApiBuilder.BuilderEvrythngClientException@Deprecated public EvrythngApiBuilder.Builder<List<File>> filesReader(String after, String searchString) throws EvrythngClientException
FilesService.filesReader(String) instead.after - find files starting from file name after or if null find from the beginning.searchString - only find files starting with search string or null to find all files.EvrythngApiBuilder.BuilderEvrythngClientException@Deprecated public EvrythngApiBuilder.Builder<File> fileReader(String name) throws EvrythngClientException
FilesService.fileReader(String) instead.name - file name.EvrythngApiBuilder.BuilderEvrythngClientException@Deprecated public EvrythngApiBuilder.Builder<Boolean> fileDeleter(String name) throws EvrythngClientException
FilesService.fileDeleter(String) instead.name - file name.EvrythngApiBuilder.BuilderEvrythngClientException@Deprecated public EvrythngApiBuilder.Builder<List<SignedUploadRequest>> fileUploadRequestsSigner(List<FileToSign> toSign) throws EvrythngClientException
FilesService.fileCreator(File) instead.toSign - list of pairs fileName and contentType.EvrythngApiBuilder.BuilderEvrythngClientException@Deprecated public EvrythngApiBuilder.Builder<List<PrivateSignedUploadRequest>> privateFileUploadRequestsSigner(List<FileToSign> toSign) throws EvrythngClientException
FilesService.fileCreator(File) instead.toSign - a list of FileToSign objects.EvrythngApiBuilder.BuilderEvrythngClientException@Deprecated public SignedUploadRequest uploadSingleFile(File file) throws EvrythngException, IOException
File. File name for the Cloud will be
determined from File provided. Will try to determine content type from File provided.file - File to upload.SignedUploadRequest instance containing url.EvrythngExceptionIOException@Deprecated public SignedUploadRequest uploadSingleFile(FileToSign toSign, File file) throws EvrythngException, IOException
File.toSign - a pair fileName and contentType.file - File to upload.SignedUploadRequest instance containing url.EvrythngExceptionIOException@Deprecated public SignedUploadRequest uploadSingleFile(FileToSign toSign, String content) throws EvrythngException, IOException
toSign - a pair fileName and contentType.content - text content.SignedUploadRequest instance containing url.EvrythngExceptionIOException@Deprecated public PrivateSignedUploadRequest uploadSinglePrivateFile(FileToSign toSign, String content) throws EvrythngException, IOException, URISyntaxException
@Deprecated public PrivateSignedUploadRequest uploadSinglePrivateFile(FileToSign toSign, File contentFile) throws EvrythngException, IOException, URISyntaxException
@Deprecated public SignedUploadRequest uploadSingleFile(FileToSign toSign, InputStream stream) throws EvrythngException, IOException
InputStream provided.toSign - a pair fileName and contentType.stream - InputStream where to read from. Should be closed externally.SignedUploadRequest instance containing url.EvrythngExceptionIOExceptionCopyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.