You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UploadStream.java 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* *************************************************************************
  2. IT Mill Toolkit
  3. Development of Browser User Interfaces Made Easy
  4. Copyright (C) 2000-2006 IT Mill Ltd
  5. *************************************************************************
  6. This product is distributed under commercial license that can be found
  7. from the product package on license.pdf. Use of this product might
  8. require purchasing a commercial license from IT Mill Ltd. For guidelines
  9. on usage, see licensing-guidelines.html
  10. *************************************************************************
  11. For more information, contact:
  12. IT Mill Ltd phone: +358 2 4802 7180
  13. Ruukinkatu 2-4 fax: +358 2 4802 7181
  14. 20540, Turku email: info@itmill.com
  15. Finland company www: www.itmill.com
  16. Primary source for information and releases: www.itmill.com
  17. ********************************************************************** */
  18. package com.itmill.toolkit.terminal;
  19. import java.io.InputStream;
  20. /**
  21. * Defines a variable type, that is used for passing uploaded files from
  22. * terminal. Most often, file upload is implented using the
  23. * {@link com.itmill.toolkit.ui.Upload Upload} component.
  24. *
  25. * @author IT Mill Ltd.
  26. * @version
  27. * @VERSION@
  28. * @since 3.0
  29. */
  30. public interface UploadStream {
  31. /**
  32. * Gets the name of the stream.
  33. *
  34. * @return the name of the stream.
  35. */
  36. public String getStreamName();
  37. /**
  38. * Gets the input stream.
  39. *
  40. * @return the Input stream.
  41. */
  42. public InputStream getStream();
  43. /**
  44. * Gets the input stream content type.
  45. *
  46. * @return the content type of the input stream.
  47. */
  48. public String getContentType();
  49. /**
  50. * Gets stream content name. Stream content name usually differs from the
  51. * actual stream name. It is used to identify the content of the stream.
  52. *
  53. * @return the Name of the stream content.
  54. */
  55. public String getContentName();
  56. }