Class ContentBytesConfig

java.lang.Object
org.apache.tika.pipes.core.ContentBytesConfig
All Implemented Interfaces:
Serializable

public class ContentBytesConfig extends Object implements Serializable
Opt-in for CONTENT_ONLY passback: the worker moves the extracted content out of TIKA_CONTENT into raw UTF-8 bytes on the EmitData, which travel as binary over the IPC instead of a Smile-encoded string. A caller who sets this must read EmitData.getContentBytes(); the metadata no longer carries the content. tika-server sets it for the raw-output endpoints. Results routed to a regular Emitter get the content restored first (see EmitDataImpl#restoreContentFromBytes).
See Also:
  • Constructor Details

    • ContentBytesConfig

      public ContentBytesConfig()
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)