Class PropertiesSerDesUtil


  • public class PropertiesSerDesUtil
    extends java.lang.Object
    Convert Map properties to bytes.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String currentVersion()
      Get version of current serializer implementation.
      static java.util.Map<java.lang.String,​java.lang.String> read​(byte[] content, java.lang.String version)
      Read properties
      static byte[] toBytes​(java.util.Map<java.lang.String,​java.lang.String> value)
      Write properties, the version is currentVersion()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • read

        public static java.util.Map<java.lang.String,​java.lang.String> read​(byte[] content,
                                                                                  java.lang.String version)
        Read properties
        Parameters:
        version - is the version of PropertiesSerDesUtil
      • toBytes

        public static byte[] toBytes​(java.util.Map<java.lang.String,​java.lang.String> value)
        Write properties, the version is currentVersion()
      • currentVersion

        public static java.lang.String currentVersion()
        Get version of current serializer implementation.