Class StringsConfig

java.lang.Object
org.apache.tika.parser.strings.StringsConfig
All Implemented Interfaces:
Serializable

@Deprecated(since="2026-04-30") public class StringsConfig extends Object implements Serializable
Deprecated.
This version of the Apache Tika library is deprecated. Use your own version of Apache Tika.
Configuration for the "strings" (or strings-alternative) command.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Default contructor.
    Deprecated.
    Loads properties from InputStream and then tries to close InputStream.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns the character encoding of the strings that are to be found.
    int
    Deprecated.
    Returns the minimum sequence length (characters) to print.
    Deprecated.
    Returns the "strings" installation folder.
    int
    Deprecated.
    Returns the maximum time (in seconds) to wait for the "strings" command to terminate.
    void
    Deprecated.
    Sets the character encoding of the strings that are to be found.
    void
    setMinLength(int minLength)
    Deprecated.
    Sets the minimum sequence length (characters) to print.
    void
    Deprecated.
    Sets the "strings" installation folder.
    void
    setTimeout(int timeout)
    Deprecated.
    Sets the maximum time (in seconds) to wait for the "strings" command to terminate.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • StringsConfig

      public StringsConfig()
      Deprecated.
      Default contructor.
    • StringsConfig

      public StringsConfig(InputStream is)
      Deprecated.
      Loads properties from InputStream and then tries to close InputStream. If there is an IOException, this silently swallows the exception and goes back to the default.
      Parameters:
      is -
  • Method Details

    • getStringsPath

      public String getStringsPath()
      Deprecated.
      Returns the "strings" installation folder.
      Returns:
      the "strings" installation folder.
    • getMinLength

      public int getMinLength()
      Deprecated.
      Returns the minimum sequence length (characters) to print.
      Returns:
      the minimum sequence length (characters) to print.
    • getEncoding

      public StringsEncoding getEncoding()
      Deprecated.
      Returns the character encoding of the strings that are to be found.
      Returns:
      StringsEncoding enum that represents the character encoding of the strings that are to be found.
    • getTimeout

      public int getTimeout()
      Deprecated.
      Returns the maximum time (in seconds) to wait for the "strings" command to terminate.
      Returns:
      the maximum time (in seconds) to wait for the "strings" command to terminate.
    • setStringsPath

      public void setStringsPath(String path)
      Deprecated.
      Sets the "strings" installation folder.
      Parameters:
      path - the "strings" installation folder.
    • setMinLength

      public void setMinLength(int minLength)
      Deprecated.
      Sets the minimum sequence length (characters) to print.
      Parameters:
      minLength - the minimum sequence length (characters) to print.
    • setEncoding

      public void setEncoding(StringsEncoding encoding)
      Deprecated.
      Sets the character encoding of the strings that are to be found.
      Parameters:
      encoding - StringsEncoding enum that represents the character encoding of the strings that are to be found.
    • setTimeout

      public void setTimeout(int timeout)
      Deprecated.
      Sets the maximum time (in seconds) to wait for the "strings" command to terminate.
      Parameters:
      timeout - the maximum time (in seconds) to wait for the "strings" command to terminate.