Package org.apache.ignite.marshaller

## Class AbstractMarshaller

- java.lang.Object
- - org.apache.ignite.marshaller.AbstractMarshaller

- All Implemented Interfaces:
    `Marshaller`
  Direct Known Subclasses:
    `AbstractNodeNameAwareMarshaller`

      public abstract class AbstractMarshaller
      extends Object
      implements Marshaller

  Base class for marshallers. Provides default implementations of methods that work with byte array or `GridByteArrayList`. These implementations use `GridByteArrayInputStream` or `GridByteArrayOutputStream` to marshal and unmarshal objects.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `protected MarshallerContext` | `ctx` | Context.
    `static int` | `DFLT_BUFFER_SIZE` | Default initial buffer size for the `GridByteArrayOutputStream`.

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `AbstractMarshaller()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `MarshallerContext` | `getContext()` |
    `void` | `setContext​(MarshallerContext ctx)` | Sets marshaller context.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.ignite.marshaller.Marshaller

      `marshal, marshal, nodeName, onUndeploy, unmarshal, unmarshal`

- - ### Field Detail

    - #### DFLT_BUFFER_SIZE

          public static final int DFLT_BUFFER_SIZE

      Default initial buffer size for the `GridByteArrayOutputStream`.
      See Also:
        Constant Field Values

    - #### ctx

          protected MarshallerContext ctx

      Context.

  - ### Constructor Detail

    - #### AbstractMarshaller

          public AbstractMarshaller()

  - ### Method Detail

    - #### getContext

          public MarshallerContext getContext()

      Returns:
        Marshaller context.

    - #### setContext

          public void setContext​(MarshallerContext ctx)

      Sets marshaller context.
      Specified by:
        `setContext` in interface `Marshaller`
      Parameters:
        `ctx` - Marshaller context.