Interface FileDataSource

All Superinterfaces:
javax.activation.DataSource
All Known Implementing Classes:
AttachmentDataSource

public interface FileDataSource extends javax.activation.DataSource
Provides type and size information from DataSource
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the size of the file in bytes.
    Returns the MIME type of the content.
    Returns the MIME type extension from file name.

    Methods inherited from interface javax.activation.DataSource

    getContentType, getInputStream, getName, getOutputStream
  • Method Details

    • getType

      String getType()
      Returns the MIME type of the content.
      Returns:
      content MIME type.
    • getTypeFromFileName

      String getTypeFromFileName()
      Returns the MIME type extension from file name.
      Returns:
      content MIME type extension from file Name.
    • getSize

      long getSize()
      Returns the size of the file in bytes.
      Returns:
      size of file in bytes.