Package com.igormaznitsa.jbbp.io
Interface JBBPCustomFieldWriter
public interface JBBPCustomFieldWriter
The Interface describes an object which can save data for custom fields in mapped classes.
- Since:
- 1.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidwriteCustomField(JBBPOut context, JBBPBitOutputStream outStream, Object instanceToSave, Field instanceCustomField, Bin fieldAnnotation, Object value) To write the field data into the bit stream.
-
Method Details
-
writeCustomField
void writeCustomField(JBBPOut context, JBBPBitOutputStream outStream, Object instanceToSave, Field instanceCustomField, Bin fieldAnnotation, Object value) throws IOException To write the field data into the bit stream.- Parameters:
context- the JBBPOut context, must not be nulloutStream- the current context output stream, must not be nullinstanceToSave- the mapped class instance, must not be nullinstanceCustomField- the field of the mapped class which data must be saved into the stream, must not be nullfieldAnnotation- the field Bin annotation which can be used as extra data source about the field, must not be nullvalue- the value found in the field, can be null- Throws:
IOException- it will be thrown if it is impossible to process field data and save them into the stream
-