Interface IProcessEncoding

  • All Known Implementing Classes:
    ProcessEncoding

    public interface IProcessEncoding
    Encoding provider delegate, that provides encodings, that can be used to read JVM ProcessBuilder or Runtime.exec() output streams. An encoding provider delegate extension is defined in plugin.xml.

    Following is an example definition of an encoding provider delegate:

     <extension point="com._1c.g5.v8.dt.platform.services.core.processEncodings">
       <processEncoding
          class="com._1c.g5.v8.dt.platform.services.core.runtimes.ProcessEncoding">
       </processEncoding>
     </extension>
     

    If provided, then specific encodings, defined in IProcessEncoding will be used. Defaults will be used otherwise. One or zero registered IProcessEncoding per user OS are expected. Also provides, whether needs to split infobase commands in ProcessBuilder.

    This interface is intended to be implemented and registered by clients.

    Instances are not intended to be explicitly used by client, use IProcessEncodingProvider instead.

    See Also:
    IProcessEncodingProvider
    • Method Detail

      • getOutputEncoding

        Charset getOutputEncoding()
        Returns default processes output encoding, that can be used to read JVM ProcessBuilder or Runtime.exec() output streams.
        Returns:
        the default processes output encoding, never null
      • getLogFileEncoding

        Charset getLogFileEncoding()
        Returns 1C:Enterprise log file encoding charset.
        Returns:
        the 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