Package org.apache.tika.pipes.emitter.fs
Record Class FileSystemEmitterConfig
java.lang.Object
java.lang.Record
org.apache.tika.pipes.emitter.fs.FileSystemEmitterConfig
-
Constructor Summary
ConstructorsConstructorDescriptionFileSystemEmitterConfig(String basePath, String fileExtension, org.apache.tika.pipes.emitter.fs.FileSystemEmitterConfig.ON_EXISTS onExists, boolean prettyPrint) Creates an instance of aFileSystemEmitterConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbasePath()Returns the value of thebasePathrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileExtensionrecord component.final inthashCode()Returns a hash code value for this object.static FileSystemEmitterConfigorg.apache.tika.pipes.emitter.fs.FileSystemEmitterConfig.ON_EXISTSonExists()Returns the value of theonExistsrecord component.booleanReturns the value of theprettyPrintrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FileSystemEmitterConfig
public FileSystemEmitterConfig(String basePath, String fileExtension, org.apache.tika.pipes.emitter.fs.FileSystemEmitterConfig.ON_EXISTS onExists, boolean prettyPrint) Creates an instance of aFileSystemEmitterConfigrecord class.- Parameters:
basePath- the value for thebasePathrecord componentfileExtension- the value for thefileExtensionrecord componentonExists- the value for theonExistsrecord componentprettyPrint- the value for theprettyPrintrecord component
-
-
Method Details
-
load
- Throws:
TikaConfigException
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
basePath
Returns the value of thebasePathrecord component.- Returns:
- the value of the
basePathrecord component
-
fileExtension
Returns the value of thefileExtensionrecord component.- Returns:
- the value of the
fileExtensionrecord component
-
onExists
public org.apache.tika.pipes.emitter.fs.FileSystemEmitterConfig.ON_EXISTS onExists()Returns the value of theonExistsrecord component.- Returns:
- the value of the
onExistsrecord component
-
prettyPrint
public boolean prettyPrint()Returns the value of theprettyPrintrecord component.- Returns:
- the value of the
prettyPrintrecord component
-