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.File
getFile()
Replies the File in this entry.String
getMimeType()
Replies the mime type associated to the entry.(package private) Object
getResource()
Replies the resource.URL
getURL()
Replies the URL in this entry.boolean
isEmbeddedData()
Replies if this entry contains an embedded data.boolean
isFile()
Replies if this entry contains a File.boolean
isURL()
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:
true
if the resource is an URL, otherwisefalse
-
isFile
@Pure public boolean isFile()
Replies if this entry contains a File.- Returns:
true
if the resource is a File, otherwisefalse
-
isEmbeddedData
@Pure public boolean isEmbeddedData()
Replies if this entry contains an embedded data.- Returns:
true
if the resource is an embedded data, otherwisefalse
-
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.
-
-