@Test public void registerAdaptiveProtocol() throws Exception { }
protected static synchronized void registerAdaptiveProtocol(ProtocolInfo protocolInfo) { maxMagicOffset = Math.max(maxMagicOffset, protocolInfo.magicFieldOffset() + protocolInfo.magicFieldLength()); }
ProtocolFactory { protected static synchronized void registerAdaptiveProtocol(ProtocolInfo protocolInfo) { maxMagicOffset = Math.max(maxMagicOffset, protocolInfo.magicFieldOffset() + protocolInfo.magicFieldLength()); } }
ProtocolFactory { protected static synchronized void registerAdaptiveProtocol(ProtocolInfo protocolInfo) { maxMagicOffset = Math.max(maxMagicOffset, protocolInfo.magicFieldOffset() + protocolInfo.magicFieldLength()); }  }
ProtocolFactory { protected static synchronized void registerAdaptiveProtocol(ProtocolInfo protocolInfo) { maxMagicOffset = Math.max(maxMagicOffset, protocolInfo.magicFieldOffset() + protocolInfo.magicFieldLength()); }  static Protocol getProtocol(String alias); static Protocol getProtocol(byte code); static Byte getCodeByAlias(String protocol); static Protocol adaptiveProtocol(byte[] magicHeadBytes); static int getMaxMagicOffset(); }
ProtocolFactory { protected static synchronized void registerAdaptiveProtocol(ProtocolInfo protocolInfo) { maxMagicOffset = Math.max(maxMagicOffset, protocolInfo.magicFieldOffset() + protocolInfo.magicFieldLength()); }  static Protocol getProtocol(String alias); static Protocol getProtocol(byte code); static Byte getCodeByAlias(String protocol); static Protocol adaptiveProtocol(byte[] magicHeadBytes); static int getMaxMagicOffset();  }