Record Class PipesParsingHelper.ParseOutput
java.lang.Object
java.lang.Record
org.apache.tika.server.core.resource.PipesParsingHelper.ParseOutput
- Enclosing class:
PipesParsingHelper
public static record PipesParsingHelper.ParseOutput(List<Metadata> metadataList, byte[] contentBytes)
extends Record
The metadata plus, when requested via
content-bytes-config, the extracted
content as raw UTF-8 -- TIKA_CONTENT is then absent from the metadata.-
Constructor Summary
ConstructorsConstructorDescriptionParseOutput(List<Metadata> metadataList, byte[] contentBytes) Creates an instance of aParseOutputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of thecontentBytesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themetadataListrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParseOutput
Creates an instance of aParseOutputrecord class.- Parameters:
metadataList- the value for themetadataListrecord componentcontentBytes- the value for thecontentBytesrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
metadataList
Returns the value of themetadataListrecord component.- Returns:
- the value of the
metadataListrecord component
-
contentBytes
public byte[] contentBytes()Returns the value of thecontentBytesrecord component.- Returns:
- the value of the
contentBytesrecord component
-