Interface Plugin.Engine.Source.Element

    • Method Detail

      • getName

        java.lang.String getName()
        Returns the element's relative path and name.
        Returns:
        The element's path and name.
      • getInputStream

        java.io.InputStream getInputStream()
                                    throws java.io.IOException
        Returns an input stream to read this element's binary information.
        Returns:
        An input stream that represents this element's binary information.
        Throws:
        java.io.IOException - If an I/O error occurs.
      • resolveAs

        <T> T resolveAs​(java.lang.Class<T> type)
        Resolves this element to a more specialized form if possible. Doing so allows for performance optimizations if more specialized formats are available.
        Type Parameters:
        T - The requested spezialized type.
        Parameters:
        type - The requested spezialized type.
        Returns:
        The resolved element or null if a transformation is impossible.