slices/view/src/main/java/androidx/slice/SliceUtils.java
public static @NonNull Slice parseSlice(@NonNull Context context, @NonNull InputStream input,
            @NonNull String encoding, @NonNull SliceActionListener listener)
            throws IOException, SliceParseException {
        return SliceXml.parseSlice(context, input, encoding, listener);
    }
/**
     * Parse a slice that has been previously serialized.
     * <p>
     * Parses a slice that was serialized with {@link #serializeSlice}.
     * <p>
     * Note: Slices returned by this cannot be passed to {@link SliceConvert#unwrap(Slice)}.
     *
     * @param input The input stream to read from.
     * @param encoding The encoding to read as.
     * @param listener Listener used to handle actions when reconstructing the slice.
     * @throws SliceParseException if the InputStream cannot be parsed.
     */
Parse a slice that has been previously serialized.

Parses a slice that was serialized with  #serializeSlice.

Note: Slices returned by this cannot be passed to  SliceConvert#unwrap(Slice).

@param input The input stream to read from.
@param encoding The encoding to read as.
@param listener Listener used to handle actions when reconstructing the slice.
@throws SliceParseException if the InputStream cannot be parsed.
Parse a slice that has been previously serialized . Parses a slice that was serialized with #serializeSlice . Note : Slices returned by this cannot be passed to SliceConvert#unwrap ( Slice ) . @param input The input stream to read from . @param encoding The encoding to read as . @param listener Listener used to handle actions when reconstructing the slice . @throws SliceParseException if the InputStream cannot be parsed .
public static @NonNull Slice parseSlice(@NonNull Context context, @NonNull InputStream input,
            @NonNull String encoding, @NonNull SliceActionListener listener)
            throws IOException, SliceParseException {
        return SliceXml.parseSlice(context, input, encoding, listener);
    }
public static @ NonNull Slice parseSlice ( @ NonNull Context context , @ NonNull InputStream input , @ NonNull String encoding , @ NonNull SliceActionListener listener ) throws IOException , SliceParseException { return SliceXml . parseSlice ( context , input , encoding , listener ) ; }
Parse a slice that has been previously serialized.
Parse a slice that has been previously serialized .