java.lang.Object
org.htmlunit.platform.Platform
Singleton to handle JDK specific stuff.
This is required to support at least the differences with android.
- Author:
- Ronald Brill, Sven Strickroth
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageDatabuildImageData(InputStream inputStream) static FontUtilstatic RenderingBackendgetRenderingBackend(int imageWidth, int imageHeight)
-
Method Details
-
getRenderingBackend
- Parameters:
imageWidth- the width of the image this backend is forimageHeight- the height of the image this backend is for- Returns:
- a new
RenderingBackend. If theAwtRenderingBackendcan't be used aNoOpRenderingBackendis used instead.
-
getFontUtil
- Returns:
- a new
FontUtil. If theAwtFontUtilcan't be used aNoOpFontUtilis used instead.
-
buildImageData
- Parameters:
inputStream- theInputStreamto read from- Returns:
- a new
ImageDataobject constructed from the given inputStream - Throws:
IOException- in case of error
-