Interface ConnectContent.ConnectEntry

  • Enclosing interface:
    ConnectContent

    @ConsumerType
    public static interface ConnectContent.ConnectEntry
    Represents the entry of a ConnectContent.
    • Method Detail

      • getName

        java.lang.String getName()
        Returns the path name of this entry.
        Returns:
        The path name of this entry.
      • getContentLength

        long getContentLength()
        Returns the content length of this entry.
        Returns:
        The content length of the entry, or -1 if the content length is not known.
      • getLastModified

        long getLastModified()
        Returns the last modification time of this entry.
        Returns:
        The last modification time of this entry measured in milliseconds since the epoch (00:00:00 GMT, January 1, 1970).
      • getBytes

        default byte[] getBytes()
                         throws java.io.IOException
        Returns the content of this entry.
        Returns:
        The content of this entry.
        Throws:
        java.io.IOException - If an error occurs reading the content.
      • getInputStream

        java.io.InputStream getInputStream()
                                    throws java.io.IOException
        Returns an input stream for the content of this entry.
        Returns:
        An input stream for the content of this entry.
        Throws:
        java.io.IOException - If an error occurs reading the content.