SolidNonRDFResource

A NonRDFResource (binary) retrieved from a Solid server.

Adds server-supplied SolidMetadata (parsed from the response headers — content type and length, ACL URI, WAC-Allow, ETag, and so on) on top of the opaque byte stream inherited from NonRDFResource. This is the type returned for binary resources read from a pod.

Constructors

Link copied to clipboard
constructor(identifier: String, contentType: String, entity: InputStream)
constructor(identifier: String, contentType: String, entity: InputStream, headers: SolidHeaders?)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open override fun getContentType(): String

The media type of the resource representation (the value of its Content-Type).

Link copied to clipboard

The creation time in epoch milliseconds. Always null for a binary resource: HTTP exposes no creation header, and a non-RDF resource carries no triples from which to read dcterms:created.

Link copied to clipboard
open override fun getEntity(): InputStream

Returns the resource representation as a byte stream.

Link copied to clipboard
open override fun getHeaders(): SolidHeaders

The HTTP headers associated with this resource (empty when constructed locally).

Link copied to clipboard
open override fun getIdentifier(): String

The URI that identifies this resource on the pod.

Link copied to clipboard

The last-modified time in epoch milliseconds (the Last-Modified header), or null when absent.

Link copied to clipboard
open override fun getMetadata(): SolidMetadata
Link copied to clipboard
fun getSize(): Long

The size of this resource in bytes (its Content-Length), or 0 when the server did not report one.

Link copied to clipboard
open override fun writeToParcel(dest: Parcel, flags: Int)