Class DefaultLottieFetchResult

  • All Implemented Interfaces:
    LottieFetchResult, java.io.Closeable, java.lang.AutoCloseable

    public class DefaultLottieFetchResult
    extends java.lang.Object
    implements LottieFetchResult
    • Constructor Detail

      • DefaultLottieFetchResult

        public DefaultLottieFetchResult​(@NonNull
                                        java.net.HttpURLConnection connection)
    • Method Detail

      • bodyByteStream

        @NonNull
        public java.io.InputStream bodyByteStream()
                                           throws java.io.IOException
        Specified by:
        bodyByteStream in interface LottieFetchResult
        Returns:
        Received content stream
        Throws:
        java.io.IOException
      • contentType

        @Nullable
        public java.lang.String contentType()
        Specified by:
        contentType in interface LottieFetchResult
        Returns:
        Type of content received
      • error

        @Nullable
        public java.lang.String error()
        Specified by:
        error in interface LottieFetchResult
        Returns:
        Operation error
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable