Record Class Client.Data

java.lang.Object
java.lang.Record
com.storedobject.client.Client.Data
Record Components:
stream - An instance of an InputStream. Please make sure that the stream closed once data is read or abandoned.
mimeType - Content-type.
error - Error if any.
Enclosing class:
Client

public static record Client.Data(InputStream stream, String mimeType, String error) extends Record
Structure to wrap an InputStream and its content-type. If the stream is absent (i.e., null), the error() provides the real error message.