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
-
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
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
zipFile
-
metadataList
Returns the value of themetadataListrecord component.- Returns:
- the value of the
metadataListrecord component
-