Package eu.webtoolkit.jwt
Class WDataInfo
java.lang.Object
eu.webtoolkit.jwt.WAbstractDataInfo
eu.webtoolkit.jwt.WDataInfo
A class that stores informations about data.
This is a barebone version of WAbstractDataInfo. It simply stores the information
given to it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the data in data URI format.Returns a path to a file containing the data.getUrl()Returns the URL of the data.booleanReturns whether this can return the data in data URI format.booleanReturns whether this contains a file path.booleanhasUrl()Returns whether this contains a url.voidsetDataUri(String dataUri) Sets the data formated as data URI.voidsetFilePath(String filePath) Sets the file path.voidSets the URL.Methods inherited from class eu.webtoolkit.jwt.WAbstractDataInfo
getName
-
Constructor Details
-
WDataInfo
public WDataInfo()Creates an emptyWDataInfo. -
WDataInfo
-
-
Method Details
-
setFilePath
Sets the file path. -
getFilePath
Returns a path to a file containing the data.Throws if the file path is set to an empty string.
- Overrides:
getFilePathin classWAbstractDataInfo- See Also:
-
setUrl
Sets the URL. -
getUrl
Returns the URL of the data.Throws if the URL is set to an empty string.
- Overrides:
getUrlin classWAbstractDataInfo- See Also:
-
setDataUri
Sets the data formated as data URI. -
getDataUri
Returns the data in data URI format.Throws if the data URI is set to an empty string.
- Overrides:
getDataUriin classWAbstractDataInfo- See Also:
-
hasFilePath
public boolean hasFilePath()Returns whether this contains a file path.This returns whether
getFilePath()returns a non-empty string.- Overrides:
hasFilePathin classWAbstractDataInfo- See Also:
-
hasUrl
public boolean hasUrl()Returns whether this contains a url.This returns whether
getUrl()returns a non-empty string.- Overrides:
hasUrlin classWAbstractDataInfo- See Also:
-
hasDataUri
public boolean hasDataUri()Returns whether this can return the data in data URI format.This returns whether
getDataUri()returns a non-empty string.- Overrides:
hasDataUriin classWAbstractDataInfo- See Also:
-