com.fasterxml.jackson.dataformat.avro.ser

## Class CustomEncodingDatum<T>

- java.lang.Object
- - com.fasterxml.jackson.dataformat.avro.ser.CustomEncodingDatum<T>

- Type Parameters:
    `T` - Type of data supported by this EncodedDatum
  All Implemented Interfaces:
    EncodedDatum

      public class CustomEncodingDatum<T>
      extends Object
      implements EncodedDatum

  Writes out an object using a `CustomEncoding`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CustomEncodingDatum(CustomEncodingWrapper<T> encoding, T datum)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `write(org.apache.avro.io.Encoder encoder)` Callback invoked when it is time to write this datum to the output

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

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

- - ### Constructor Detail

    - #### CustomEncodingDatum

          public CustomEncodingDatum(CustomEncodingWrapper<T> encoding,
                             T datum)

  - ### Method Detail

    - #### write

          public void write(org.apache.avro.io.Encoder encoder)
                     throws IOException

      Description copied from interface: `EncodedDatum`
      Callback invoked when it is time to write this datum to the output
      Specified by:
        `write` in interface `EncodedDatum`
      Parameters:
        `encoder` - Encoder to which the datum should be written
      Throws:
        `IOException` - if there was an error writing out the datum

Copyright © 2017 FasterXML. All rights reserved.