public class ImageElement extends Object
DescriptionDocument| Constructor and Description |
|---|
ImageElement(Element image)
Creates a new
ImageElement instance |
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Returns the image height
|
String |
getMimeType()
Returns the MIME type of the image
|
URI |
getURI()
Returns the URI of the image
|
int |
getWidth()
Returns the image width
|
public ImageElement(Element image) throws Exception
ImageElement instanceimage - A DOM Element that will be processed in order for the ImageElement instance to be createdException - If the image element structure does not conform to the OpenSearch specification or in case of other errorpublic int getWidth()
public int getHeight()
public String getMimeType()
Copyright © 2017. All Rights Reserved.