Class FromStringDataInfo
DataInfo created from a string like before DataInfo existed.
-
Constructor Summary
ConstructorsConstructorDescriptionFromStringDataInfo(String url) FromStringDataInfo(String url, String filePath) -
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 path to a file.booleanhasUrl()Returns whether this contains a URL.Methods inherited from class eu.webtoolkit.jwt.WAbstractDataInfo
getName
-
Constructor Details
-
FromStringDataInfo
-
FromStringDataInfo
-
-
Method Details
-
getFilePath
Description copied from class:WAbstractDataInfoReturns a path to a file containing the data.This returns a path to a file containing the data. This should point to a path that exists on the system.
By default this will throw an exception.
Warning: If you reimplement this function, you must also reimplement
hasFilePath()- Overrides:
getFilePathin classWAbstractDataInfo- See Also:
-
getUrl
Description copied from class:WAbstractDataInfoReturns the URL of the data.This returns the URL of the data. This can be both an absolute URL or a URL relative to the application's base URL.
By default this will throw an exception.
Warning: If you reimplement this function, you must also reimplement
hasUrl()- Overrides:
getUrlin classWAbstractDataInfo- See Also:
-
getDataUri
Description copied from class:WAbstractDataInfoReturns the data in data URI format.This returns the data in data URI format (see: https://developer.mozilla.org/en-US/docs/Web/URI/Reference/Schemes/data).
By default this will throw an exception.
Warning: If you reimplement this function, you must also reimplement
hasDataUri()- Overrides:
getDataUriin classWAbstractDataInfo- See Also:
-
hasFilePath
public boolean hasFilePath()Description copied from class:WAbstractDataInfoReturns whether this contains a path to a file.This returns whether filePath returns a path to a file containing the data.
By default this returns
false.- Overrides:
hasFilePathin classWAbstractDataInfo- See Also:
-
hasUrl
public boolean hasUrl()Description copied from class:WAbstractDataInfoReturns whether this contains a URL.This returns whether
getUrl()returns a URL of the data.By default this returns
false.- Overrides:
hasUrlin classWAbstractDataInfo- See Also:
-
hasDataUri
public boolean hasDataUri()Description copied from class:WAbstractDataInfoReturns whether this can return the data in data URI format.This returns whether
getDataUri()returns the data in data URI format.By default this returns
false.- Overrides:
hasDataUriin classWAbstractDataInfo- See Also:
-