Interface IProcessEncodingProvider


  • public interface IProcessEncodingProvider
    Provides encodings, that can be used to read JVM ProcessBuilder or Runtime.exec() output streams. Encoding definition is delegated to registered IProcessEncoding. If no encoding registered, then clients should use default encodings.

    Also provides, whether needs to split infobase commands in ProcessBuilder.

    Restriction:
    This interface is not intended to be extended by clients.
    Restriction:
    This interface is not intended to be implemented by clients.
    • Method Detail

      • isDefault

        boolean isDefault()
        Returns true if there is encoding defined to read processes streams, and clients should use getOutputEncoding() to get and use it, or false if clients should use default encoding.
        Returns:
        whether there is encoding defined to read processes streams
      • getOutputEncoding

        Charset getOutputEncoding()
        Returns encoding defined to read processes streams.

        Clients are intended to use isDefault() method first.

        Returns:
        encoding defined to read processes streams, never null
        Throws:
        IllegalStateException - if there is no encoding defined to read processes streams
      • getLogFileEncoding

        Charset getLogFileEncoding()
        Returns 1C:Enterprise log file encoding charset.

        Clients are intended to use isDefault() method first.

        Returns:
        charset for 1C:Enterprise log file, never null
      • splitInfobaseConnection

        boolean splitInfobaseConnection()
        Returns whether need to split infobase name from infobase command option in infobase connection option.
        Returns:
        whether need to split infobase name from infobase command option