1
0

UploadCallback.java 756 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * Copyright (C) 2008 Happy Fish / YuQing
  3. * <p>
  4. * FastDFS Java Client may be copied only under the terms of the GNU Lesser
  5. * General Public License (LGPL).
  6. * Please visit the FastDFS Home Page http://www.csource.org/ for more detail.
  7. */
  8. package com.kmall.common.fileserver.fastdfs;
  9. import java.io.IOException;
  10. import java.io.OutputStream;
  11. /**
  12. * upload file callback interface
  13. *
  14. * @author Happy Fish / YuQing
  15. * @version Version 1.0
  16. */
  17. public interface UploadCallback {
  18. /**
  19. * send file content callback function, be called only once when the file uploaded
  20. *
  21. * @param out output stream for writing file content
  22. * @return 0 success, return none zero(errno) if fail
  23. */
  24. public int send(OutputStream out) throws IOException;
  25. }