Package org.arakhne.afc.inputoutput.xml
Class XMLResources.Entry
- java.lang.Object
-
- org.arakhne.afc.inputoutput.xml.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getEmbeddedData()Replies the embedded data in this entry.FilegetFile()Replies the File in this entry.StringgetMimeType()Replies the mime type associated to the entry.(package private) ObjectgetResource()Replies the resource.URLgetURL()Replies the URL in this entry.booleanisEmbeddedData()Replies if this entry contains an embedded data.booleanisFile()Replies if this entry contains a File.booleanisURL()Replies if this entry contains an URL.
-
-
-
Method Detail
-
getResource
Object getResource()
Replies the resource.- Returns:
- the resource.
-
isURL
@Pure public boolean isURL()
Replies if this entry contains an URL.- Returns:
trueif the resource is an URL, otherwisefalse
-
isFile
@Pure public boolean isFile()
Replies if this entry contains a File.- Returns:
trueif the resource is a File, otherwisefalse
-
isEmbeddedData
@Pure public boolean isEmbeddedData()
Replies if this entry contains an embedded data.- Returns:
trueif the resource is an embedded data, otherwisefalse
-
getURL
@Pure public URL getURL()
Replies the URL in this entry.- Returns:
- the url or
nullif the entry is not an URL.
-
getFile
@Pure public File getFile()
Replies the File in this entry.- Returns:
- the url or
nullif the entry is not a File.
-
getEmbeddedData
@Pure public byte[] getEmbeddedData()
Replies the embedded data in this entry.- Returns:
- the embedded data or
nullif the entry is not an embedded data.
-
getMimeType
@Pure public String getMimeType()
Replies the mime type associated to the entry.- Returns:
- the mime type.
-
-