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 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 null
      outStream - the current context output stream, must not be null
      instanceToSave - the mapped class instance, must not be null
      instanceCustomField - the field of the mapped class which data must be saved into the stream, must not be null
      fieldAnnotation - the field Bin annotation which can be used as extra data source about the field, must not be null
      value - 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