Share this page

com.hp.lft.sdk

## Class VideoData

- java.lang.Object
- - com.hp.lft.sdk.VideoData

-     public class VideoData
      extends java.lang.Object

  An object that holds video binary data.

- - ### Constructor Summary

    Constructor and Description
    `VideoData(byte[] videoData, VideoFormat videoFormat)` Create VideoData object.
    `VideoData(java.lang.String filePath)` Create VideoData object.
    `VideoData(java.lang.String filePath, VideoFormat videoFormat)` Create VideoData object.

  - ### Method Summary

    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getData()` Returns the video binary data.
    `VideoFormat` | `getVideoFormat()` Returns the video format.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### VideoData

          public VideoData(byte[] videoData,
                           VideoFormat videoFormat)

      Create VideoData object.
      Parameters:
        `videoData` - Video binary data.
        `videoFormat` - Format of the video.

    - #### VideoData

          public VideoData(java.lang.String filePath,
                           VideoFormat videoFormat)
                    throws java.io.IOException

      Create VideoData object.
      Parameters:
        `filePath` - Path to the video file.
        `videoFormat` - Format of the video.
      Throws:
        `java.io.IOException`

    - #### VideoData

          public VideoData(java.lang.String filePath)
                    throws java.io.IOException

      Create VideoData object.
      Parameters:
        `filePath` - Path to the video file. The video format will be deduced from the file extension.
      Throws:
        `java.io.IOException`

  - ### Method Detail

    - #### getData

          public byte[] getData()

      Returns the video binary data.
      Returns:
        the video binary data.

    - #### getVideoFormat

          public VideoFormat getVideoFormat()

      Returns the video format.
      Returns:
        the video format.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: