Class AbstractRoutableFactory

    • Constructor Detail

      • AbstractRoutableFactory

        public AbstractRoutableFactory()
    • Method Detail

      • decodeString

        public static java.lang.String decodeString​(com.yahoo.vespa.objects.Deserializer in)
        Reads a string from the given buffer that was previously written by encodeString(String, com.yahoo.vespa.objects.Serializer).
        Parameters:
        in - The byte buffer to read from.
        Returns:
        The decoded string.
      • encodeString

        public static void encodeString​(java.lang.String str,
                                        com.yahoo.vespa.objects.Serializer out)
        Writes the given string to the given byte buffer in such a way that it can be decoded using decodeString(com.yahoo.vespa.objects.Deserializer).
        Parameters:
        str - The string to encode.
        out - The byte buffer to write to.