docs/doc/reference/com/google/android/exoplayer2/upstream/HttpDataSource.InvalidContentTypeException.html
Package com.google.android.exoplayer2.upstream
All Implemented Interfaces:SerializableEnclosing interface:HttpDataSource
public static final classHttpDataSource.InvalidContentTypeExceptionextends[HttpDataSource.HttpDataSourceException](HttpDataSource.HttpDataSourceException.html "class in com.google.android.exoplayer2.upstream")
Thrown when the content type is invalid. See Also:Serialized Form
-
HttpDataSource.HttpDataSourceException.Type
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| String | contentType | |
-
dataSpec, type, TYPE_CLOSE, TYPE_OPEN, TYPE_READ
-
POSITION_OUT_OF_RANGE, reason
Constructors | Constructor | Description |
| --- | --- |
| InvalidContentTypeException(String contentType, DataSpec dataSpec) | |
-
createForIOException
-
isCausedByPositionOutOfRange
-
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
public final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")contentType
-
public InvalidContentTypeException([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")contentType,[DataSpec](DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec)