Record Class PipesParsingHelper.UnpackResult
java.lang.Object
java.lang.Record
org.apache.tika.server.core.resource.PipesParsingHelper.UnpackResult
- Record Components:
zipFile- path to the zip file containing extracted embedded documents, or null if no embedded documents were found. Caller must delete after use.metadataList- list of metadata objects from parsing
- Enclosing class:
- PipesParsingHelper
public static record PipesParsingHelper.UnpackResult(Path zipFile, List<Metadata> metadataList)
extends Record
Result of UNPACK parsing containing the zip file path and metadata.
-
Constructor Summary
ConstructorsConstructorDescriptionUnpackResult(Path zipFile, List<Metadata> metadataList) Creates an instance of aUnpackResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Deletes the zip file.final booleanIndicates whether some other object is "equal to" this one.Returns an InputStream for the zip file.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.zipFile()Returns the value of thezipFilerecord component.
-
Constructor Details
-
UnpackResult
Creates an instance of aUnpackResultrecord class.- Parameters:
zipFile- the value for thezipFilerecord componentmetadataList- the value for themetadataListrecord component
-
-
Method Details
-
getZipInputStream
Returns an InputStream for the zip file. Caller must close the stream and delete the file when done.- Throws:
IOException
-
cleanup
public void cleanup()Deletes the zip file. Call this after streaming is complete. -
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). -
zipFile
Returns the value of thezipFilerecord component.- Returns:
- the value of the
zipFilerecord component
-
metadataList
Returns the value of themetadataListrecord component.- Returns:
- the value of the
metadataListrecord component
-