Class XMLResources.Entry

  • Enclosing class:
    XMLResources

    public class XMLResources.Entry
    extends Object
    Entry in a XMLResourceClassifier.
    Since:
    15.0
    Version:
    17.0 2020-01-04 14:41:40
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.core
    Maven Artifact Id:
    inputoutput
    • Constructor Detail

      • Entry

        public Entry​(Object resource,
                     String mimeType)
        Constructor.
        Parameters:
        resource - the resource.
        mimeType - the mime type of the resource.
    • Method Detail

      • getResource

        Object getResource()
        Replies the resource.
        Returns:
        the resource.
      • isURL

        @Pure
        public boolean isURL()
        Replies if this entry contains an URL.
        Returns:
        true if the resource is an URL, otherwise false
      • isFile

        @Pure
        public boolean isFile()
        Replies if this entry contains a File.
        Returns:
        true if the resource is a File, otherwise false
      • isEmbeddedData

        @Pure
        public boolean isEmbeddedData()
        Replies if this entry contains an embedded data.
        Returns:
        true if the resource is an embedded data, otherwise false
      • getURL

        @Pure
        public URL getURL()
        Replies the URL in this entry.
        Returns:
        the url or null if the entry is not an URL.
      • getFile

        @Pure
        public File getFile()
        Replies the File in this entry.
        Returns:
        the url or null if the entry is not a File.
      • getEmbeddedData

        @Pure
        public byte[] getEmbeddedData()
        Replies the embedded data in this entry.
        Returns:
        the embedded data or null if the entry is not an embedded data.
      • getMimeType

        @Pure
        public String getMimeType()
        Replies the mime type associated to the entry.
        Returns:
        the mime type.