Transferable.java 437 B

12345678910111213141516171819202122232425
  1. package com.example.socketdemo.base;
  2. /**
  3. * Created by AA on 2017/3/24.
  4. */
  5. public interface Transferable {
  6. /**
  7. * 初始化
  8. * @throws Exception
  9. */
  10. void init() throws Exception;
  11. /**
  12. * 发送/接收文件实体数据
  13. * @throws Exception
  14. */
  15. void parseBody() throws Exception;
  16. /**
  17. * 发送/接收完毕
  18. * @throws Exception
  19. */
  20. void finishTransfer() throws Exception;
  21. }