Enum DeliveryMethod
- java.lang.Object
-
- java.lang.Enum<DeliveryMethod>
-
- org.schabi.newpipe.extractor.stream.DeliveryMethod
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DeliveryMethod>
public enum DeliveryMethod extends java.lang.Enum<DeliveryMethod>
An enum to represent the different delivery methods ofstreams
which are returned by the extractor.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DASH
Used forStream
s served using the DASH (Dynamic Adaptive Streaming over HTTP) adaptive streaming method.HLS
Used forStream
s served using the HLS (HTTP Live Streaming) adaptive streaming method.PROGRESSIVE_HTTP
Used forStream
s served using the progressive HTTP streaming method.SS
Used forStream
s served using the SmoothStreaming adaptive streaming method.TORRENT
Used forStream
s served via a torrent file.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeliveryMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DeliveryMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROGRESSIVE_HTTP
public static final DeliveryMethod PROGRESSIVE_HTTP
Used forStream
s served using the progressive HTTP streaming method.
-
DASH
public static final DeliveryMethod DASH
Used forStream
s served using the DASH (Dynamic Adaptive Streaming over HTTP) adaptive streaming method.- See Also:
- the Dynamic Adaptive Streaming over HTTP Wikipedia page and DASH Industry Forum's website for more information about the DASH delivery method
-
HLS
public static final DeliveryMethod HLS
Used forStream
s served using the HLS (HTTP Live Streaming) adaptive streaming method.- See Also:
- the HTTP Live Streaming page and Apple's developers website page about HTTP Live Streaming for more information about the HLS delivery method
-
SS
public static final DeliveryMethod SS
Used forStream
s served using the SmoothStreaming adaptive streaming method.- See Also:
- Wikipedia's page about adaptive bitrate streaming, section Microsoft Smooth Streaming (MSS) for more information about the SmoothStreaming delivery method
-
TORRENT
public static final DeliveryMethod TORRENT
Used forStream
s served via a torrent file.- See Also:
- Wikipedia's BitTorrent's page, Wikipedia's page about torrent files and Bitorrent's website for more information about the BitTorrent protocol
-
-
Method Detail
-
values
public static DeliveryMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DeliveryMethod c : DeliveryMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeliveryMethod valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-