Class AbstractRoutableFactory
- java.lang.Object
-
- com.yahoo.documentapi.messagebus.protocol.AbstractRoutableFactory
-
- All Implemented Interfaces:
RoutableFactory
- Direct Known Subclasses:
RoutableFactories60.DocumentMessageFactory
,RoutableFactories60.DocumentReplyFactory
public abstract class AbstractRoutableFactory extends java.lang.Object implements RoutableFactory
- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description AbstractRoutableFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
decodeString(com.yahoo.vespa.objects.Deserializer in)
Reads a string from the given buffer that was previously written byencodeString(String, com.yahoo.vespa.objects.Serializer)
.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 usingdecodeString(com.yahoo.vespa.objects.Deserializer)
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.yahoo.documentapi.messagebus.protocol.RoutableFactory
decode, encode
-
-
-
-
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 byencodeString(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 usingdecodeString(com.yahoo.vespa.objects.Deserializer)
.- Parameters:
str
- The string to encode.out
- The byte buffer to write to.
-
-