org.eclnt.jsfserver.bufferedcontent

## Interface IUploadStreamContent

- All Superinterfaces:
    java.io.Serializable
  All Known Implementing Classes:
    DefaultUploadStreamContent

      public interface IUploadStreamContent
      extends java.io.Serializable

  Interface that is used to pass content that is uploadeded from the client. The content is passed as stream - so that not the whole content of what is uploaded is kept in memory.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `beginPassing()` Called before the first file is transferred.
    `void` | `endPassing()` Called after all files have been passed via `#passClientFile(String, byte[])`.
    `java.lang.String` | `getId()`
    `java.lang.String` | `getURL()` URL that can be passed into the upload component.
    `void` | `passClientFilesAsStream(java.io.InputStream is)` This method passes the uploaded file content into your implementation.

- - ### Method Detail

    - #### getId

          java.lang.String getId()

    - #### getURL

          java.lang.String getURL()

      URL that can be passed into the upload component. The URL is the one used by the uploade component to send the content of a file that is to be uploaded.

    - #### beginPassing

          void beginPassing()

      Called before the first file is transferred.

    - #### passClientFilesAsStream

          void passClientFilesAsStream(java.io.InputStream is)

      This method passes the uploaded file content into your implementation.
      The format of the stream is:

    - #### endPassing

          void endPassing()

      Called after all files have been passed via `#passClientFile(String, byte[])`. The upload has ended when this method is called.

Copyright © CaptainCasa Gmbh. All Rights Reserved.