public class WebVTTSubtitle extends java.lang.Object implements StringResponse.StringData
SubtitlesCore.SubtitleFormat.INDIVIDUAL
Constructor and Description |
---|
WebVTTSubtitle() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType() |
java.lang.String |
getEncoding() |
MediaObjectList |
getMediaObjects() |
SubtitlesCore.SubtitleFormat |
getSubtitleFormat() |
void |
setMediaObjects(MediaObjectList mediaObjects) |
void |
setSubtitleFormat(SubtitlesCore.SubtitleFormat subtitleFormat) |
java.lang.String |
toResponseString() |
public WebVTTSubtitle()
public MediaObjectList getMediaObjects()
public void setMediaObjects(MediaObjectList mediaObjects)
mediaObjects
- the mediaObjects to setpublic SubtitlesCore.SubtitleFormat getSubtitleFormat()
public void setSubtitleFormat(SubtitlesCore.SubtitleFormat subtitleFormat)
subtitleFormat
- if null, the format will default to SubtitlesCore.SubtitleFormat.INDIVIDUAL
public java.lang.String toResponseString() throws java.lang.IllegalArgumentException
toResponseString
in interface StringResponse.StringData
java.lang.IllegalArgumentException
public java.lang.String getContentType()
getContentType
in interface StringResponse.StringData
public java.lang.String getEncoding()
getEncoding
in interface StringResponse.StringData
Definitions.ENCODING_UTF8
}StringResponse.StringData.toResponseString()
Copyright © 2015 Tampere University of Technology, Pori Department.