public class BoxHttpDataSource extends DefaultHttpDataSource
com.google.android.exoplayer.upstream.HttpDataSource.HttpDataSourceException, com.google.android.exoplayer.upstream.HttpDataSource.InvalidContentTypeException, com.google.android.exoplayer.upstream.HttpDataSource.InvalidResponseCodeExceptionconnection, dataSpec, DEFAULT_CONNECT_TIMEOUT_MILLIS, DEFAULT_READ_TIMEOUT_MILLIS| Constructor and Description |
|---|
BoxHttpDataSource(com.box.androidsdk.content.models.BoxSession session,
com.google.android.exoplayer.util.Predicate<java.lang.String> contentTypePredicate,
com.box.androidsdk.content.models.BoxFile file) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
interceptResponseCode(int responseCode) |
protected java.net.HttpURLConnection |
makeConnection(com.google.android.exoplayer.upstream.DataSpec dataSpec)
Establishes a connection, following redirects to do so where permitted.
|
bytesRead, bytesRemaining, bytesSkipped, clearAllRequestProperties, clearRequestProperty, close, closeConnectionQuietly, getConnection, getContentLength, getResponseHeaders, getUri, handleRedirect, makeConnection, open, read, readInternal, setRequestProperty, skipInternalpublic BoxHttpDataSource(com.box.androidsdk.content.models.BoxSession session,
com.google.android.exoplayer.util.Predicate<java.lang.String> contentTypePredicate,
com.box.androidsdk.content.models.BoxFile file)
protected int interceptResponseCode(int responseCode)
throws com.box.androidsdk.content.BoxException,
com.google.android.exoplayer.upstream.HttpDataSource.HttpDataSourceException
interceptResponseCode in class DefaultHttpDataSourcecom.box.androidsdk.content.BoxExceptioncom.google.android.exoplayer.upstream.HttpDataSource.HttpDataSourceExceptionprotected java.net.HttpURLConnection makeConnection(com.google.android.exoplayer.upstream.DataSpec dataSpec)
throws java.io.IOException
DefaultHttpDataSourcemakeConnection in class DefaultHttpDataSourcedataSpec - The data spec associated with this connection.java.io.IOException - throws IOException if there is an error creating connection.