public interface

Openable.Open

 androidx.pdf.data.Openable.Open

Overview

An object that represents an open connection to obtain the data, and gives ways to read it.

Summary

Methods
public java.lang.StringgetContentType()

Returns the declared content-type of the data.

public ParcelFileDescriptorgetFd()

Returns a file descriptor on this data, if available (e.g.

public java.io.InputStreamgetInputStream()

Gives an java.io.InputStream to read the data.

public longlength()

Returns the declared length of the data.

Methods

public java.io.InputStream getInputStream()

Gives an java.io.InputStream to read the data.
Callers take ownership of the returned InputStream and are responsible for closing it.

public ParcelFileDescriptor getFd()

Returns a file descriptor on this data, if available (e.g. doesn't work for http).
Callers take ownership of the returned ParcelFileDescriptor and are responsible for closing it.

public long length()

Returns the declared length of the data.

public java.lang.String getContentType()

Returns the declared content-type of the data.