org.apache.olingo.odata2.client.api.ep

## Interface ContentTypeBasedSerializer

- All Known Implementing Classes:
    AtomSerializerDeserializer, JsonSerializerDeserializer

      public interface ContentTypeBasedSerializer

  Interface for all none basic (content type dependent) serializer methods.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | `readBatchRequest(List<BatchPart> batchParts, String boundary)` Reads Batch Request Parts and returns an input Stream
    `ODataResponse` | `writeEntry(EdmEntitySet entitySet, Entity data)` Returns an OData Response for a given entry
    `ODataResponse` | `writeFeed(EdmEntitySet entitySet, EntityCollection data)` Returns an OData Response for a given feed

- - ### Method Detail

    - #### writeEntry

          ODataResponse writeEntry(EdmEntitySet entitySet,
                                   Entity data)
                            throws EntityProviderException

      Returns an OData Response for a given entry
      Parameters:
        `entitySet` -
        `data` -
      Returns:
        ODataResponse
      Throws:
        `EntityProviderException`

    - #### writeFeed

          ODataResponse writeFeed(EdmEntitySet entitySet,
                                  EntityCollection data)
                           throws EntityProviderException

      Returns an OData Response for a given feed
      Parameters:
        `entitySet` -
        `data` -
      Returns:
        ODataResponse
      Throws:
        `EntityProviderException`

    - #### readBatchRequest

          InputStream readBatchRequest(List<BatchPart> batchParts,
                                       String boundary)

      Reads Batch Request Parts and returns an input Stream
      Parameters:
        `batchParts` -
        `boundary` -
      Returns:
        InputStream

Copyright © 2013-2022 The Apache Software Foundation. All Rights Reserved.