edu.ksu.canvas.interfaces.FileWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canvas-api Show documentation
Show all versions of canvas-api Show documentation
A native Java library to talk to the Canvas REST API
The newest version!
package edu.ksu.canvas.interfaces;
import edu.ksu.canvas.model.Deposit;
import edu.ksu.canvas.model.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.Optional;
/**
* This just allows you to upload a file once you've requested a file to be uploaded.
* https://canvas.instructure.com/doc/api/file.file_uploads.html
*/
public interface FileWriter extends CanvasWriter {
Optional upload(Deposit deposit, InputStream in, String filename) throws IOException;
}