Class EmptyDataSource

java.lang.Object
org.apache.axiom.util.activation.EmptyDataSource
All Implemented Interfaces:
DataSource, SizeAwareDataSource

public class EmptyDataSource extends Object implements SizeAwareDataSource
A data source with empty (zero length) content.
  • Field Details

    • INSTANCE

      public static final EmptyDataSource INSTANCE
      Empty data source instance with content type application/octet-stream.
  • Constructor Details

    • EmptyDataSource

      public EmptyDataSource(String contentType)
      Construct an empty data source with the given content type.
      Parameters:
      contentType - the content type
  • Method Details