Interface SizedDataSource

  • All Superinterfaces:
    javax.activation.DataSource

    public interface SizedDataSource
    extends javax.activation.DataSource
    An extension of the javax.activation.DataSource that provides the size information of the binary input stream.
    Since:
    1.5
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long getSize()
      Returns the number of bytes that can be retrieved by getInputStream() The method can be called more than once.
      • Methods inherited from interface javax.activation.DataSource

        getContentType, getInputStream, getName, getOutputStream
    • Method Detail

      • getSize

        long getSize()
        Returns the number of bytes that can be retrieved by getInputStream() The method can be called more than once. A return value less than 0 will be interpreted as unknown size.
        Returns:
        the size of the input stream in bytes
        Since:
        1.5