Interface XMLMessage.MessageDataSource

All Known Implementing Classes:
XMLMessage.UnknownContent, XMLMessage.XMLMultiPart
Enclosing class:
XMLMessage

public static interface XMLMessage.MessageDataSource
Access a Message as a DataSource.

A Message implementation will implement this if the messages is to be access as data source.

TODO: consider putting as part of the API.

  • Method Summary

    Modifier and Type
    Method
    Description
    javax.activation.DataSource
    Get the data source.
    boolean
    Check if the data source has been consumed.
  • Method Details

    • hasUnconsumedDataSource

      boolean hasUnconsumedDataSource()
      Check if the data source has been consumed.
      Returns:
      true of the data source has been consumed, otherwise false.
    • getDataSource

      javax.activation.DataSource getDataSource()
      Get the data source.
      Returns:
      the data source.