001package com.box.sdk;
002
003import java.io.IOException;
004import java.io.OutputStream;
005
006/**
007 * The callback which allows file content to be written on output stream.
008 */
009public interface UploadFileCallback {
010
011    /**
012     * Called when file upload api is called and requests to write content to output stream.
013     *
014     * @param outputStream Output stream to write file content to be uploaded.
015     * @throws IOException Exception while writing to output stream.
016     */
017    void writeToStream(OutputStream outputStream) throws IOException;
018}