Interface FieldHandler

All Known Implementing Classes:
JREFieldHandler

public interface FieldHandler
  • Method Details

    • excessiveField

      boolean excessiveField(Object object, Fields.FieldContext field) throws StreamCorruptedException
      Called when a loaded field doesn't exist.
      Parameters:
      object - The object whose filed is missing
      field - The field read from stream
      Returns:
      Whether this Handler handled the request
      Throws:
      StreamCorruptedException
    • missingField

      boolean missingField(Object object, Field field) throws StreamCorruptedException
      Called if a field was not found in the stream.
      Parameters:
      object - The object whose filed is missing
      field - The field that didn't occur in the stream
      Returns:
      Whether this Handler handled the request
      Throws:
      StreamCorruptedException
    • incompatibleField

      boolean incompatibleField(Object object, Field field, Fields.FieldContext context) throws StreamCorruptedException
      Called when a loaded value is not compatible with the type of field.
      Parameters:
      object - The object the field belongs to
      field - The field to set
      context - The field read from stream
      Returns:
      Whether this Handler handled the request
      Throws:
      StreamCorruptedException