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