Enum Class Protocol

java.lang.Object
java.lang.Enum<Protocol>
org.aoju.bus.office.Protocol
All Implemented Interfaces:
Serializable, Comparable<Protocol>, Constable

public enum Protocol extends Enum<Protocol>
表示可用于与正在运行的office实例通信的协议.
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

    • PIPE

      public static final Protocol PIPE
      表示使用共享内存的命名管道连接类型. 这种类型的进程间连接比套接字连接稍微快一些, 并且只有在两个进程位于同一台机器上时才能工作. 默认情况下,不能在Java上工作,不支持命名管道.
    • SOCKET

      public static final Protocol SOCKET
      表示使用可靠的TCP/IP套接字连接的连接类型.
  • Method Details

    • values

      public static Protocol[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Protocol valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null