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 an- InputStream. Please make sure that the stream is 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 SummaryConstructorsConstructorDescriptionData(InputStream stream, String mimeType, String error) Creates an instance of aDatarecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.mimeType()Returns the value of themimeTyperecord component.stream()Returns the value of thestreamrecord component.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
Data
 
- 
- 
Method Details- 
toString
- 
hashCode
- 
equalsIndicates 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
 
-