Class Image
java.lang.Object
com.kohlschutter.boilerpipe.document.Image
- All Implemented Interfaces:
Comparable<Image>
Represents an Image resource that is contained in the document.
Any of the attributes may be null, except for "src".
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
src
-
width
-
height
-
alt
-
area
private final int area
-
-
Constructor Details
-
Image
-
-
Method Details
-
getSrc
-
getWidth
-
getHeight
-
getAlt
-
nullTrim
-
getArea
public int getArea()Returns the image's area (specified by width * height), or -1 if width/height weren't both specified or could not be parsed.- Returns:
-
toString
-
compareTo
- Specified by:
compareToin interfaceComparable<Image>
-