Record Class PdfExtractor.ExtractedImage
java.lang.Object
java.lang.Record
cloud.opencode.base.pdf.operation.PdfExtractor.ExtractedImage
- Record Components:
data- image data | 图像数据format- image format | 图像格式width- image width | 图像宽度height- image height | 图像高度pageNumber- page number where found | 发现图像的页码
- Enclosing class:
PdfExtractor
public static record PdfExtractor.ExtractedImage(byte[] data, String format, int width, int height, int pageNumber)
extends Record
Extracted Image
提取的图像
- Since:
- JDK 25, opencode-base-pdf V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionExtractedImage(byte[] data, String format, int width, int height, int pageNumber) Creates an instance of aExtractedImagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.intReturns the value of thepageNumberrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
ExtractedImage
Creates an instance of aExtractedImagerecord class.- Parameters:
data- the value for thedatarecord componentformat- the value for theformatrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentpageNumber- the value for thepageNumberrecord component
-
-
Method Details
-
data
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
format
-
width
-
height
-
pageNumber
public int pageNumber()Returns the value of thepageNumberrecord component.- Returns:
- the value of the
pageNumberrecord component
-