Package com.airbnb.lottie.network
Class DefaultLottieFetchResult
- java.lang.Object
-
- com.airbnb.lottie.network.DefaultLottieFetchResult
-
- All Implemented Interfaces:
LottieFetchResult,java.io.Closeable,java.lang.AutoCloseable
public class DefaultLottieFetchResult extends java.lang.Object implements LottieFetchResult
-
-
Constructor Summary
Constructors Constructor Description DefaultLottieFetchResult(java.net.HttpURLConnection connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStreambodyByteStream()voidclose()java.lang.StringcontentType()java.lang.Stringerror()booleanisSuccessful()
-
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessfulin interfaceLottieFetchResult- Returns:
- Is the operation successful
-
bodyByteStream
@NonNull public java.io.InputStream bodyByteStream() throws java.io.IOException- Specified by:
bodyByteStreamin interfaceLottieFetchResult- Returns:
- Received content stream
- Throws:
java.io.IOException
-
contentType
@Nullable public java.lang.String contentType()
- Specified by:
contentTypein interfaceLottieFetchResult- Returns:
- Type of content received
-
error
@Nullable public java.lang.String error()
- Specified by:
errorin interfaceLottieFetchResult- Returns:
- Operation error
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-