Package com.storedobject.client
Record Class Client.Data
java.lang.Object
java.lang.Record
com.storedobject.client.Client.Data
- Record Components:
stream
- An instance of anInputStream
. Please make sure that the stream closed once data is read or abandoned.mimeType
- Content-type.error
- Error if any.
- Enclosing class:
Client
Structure to wrap an
InputStream
and its content-type. If the stream is absent (i.e., null
),
the error()
provides the real error message.-
Constructor Summary
ConstructorsConstructorDescriptionData
(InputStream stream, String mimeType, String error) Creates an instance of aData
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.error()
Returns the value of theerror
record component.final int
hashCode()
Returns a hash code value for this object.mimeType()
Returns the value of themimeType
record component.stream()
Returns the value of thestream
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Data
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
stream
-
mimeType
-
error
-