Class DataAdapterHelper

  • Direct Known Subclasses:
    UsageFileAdapter

    public class DataAdapterHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @Nullable java.lang.String readNullableUTF​(java.io.DataInput in)  
      static int readUVInt​(java.io.DataInput in)
      Read unsigned variable length integer (ULEB128 encoding)
      static void writeNullableUTF​(java.io.DataOutput out, @Nullable java.lang.String str)  
      static void writeUVInt​(java.io.DataOutput out, int val)
      Write unsigned variable length integer (ULEB128 encoding)
      • Methods inherited from class java.lang.Object

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

      • DataAdapterHelper

        public DataAdapterHelper()
    • Method Detail

      • writeNullableUTF

        public static void writeNullableUTF​(java.io.DataOutput out,
                                            @Nullable
                                            @Nullable java.lang.String str)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readNullableUTF

        @Nullable
        public static @Nullable java.lang.String readNullableUTF​(java.io.DataInput in)
                                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • writeUVInt

        public static void writeUVInt​(java.io.DataOutput out,
                                      int val)
                               throws java.io.IOException
        Write unsigned variable length integer (ULEB128 encoding)
        Throws:
        java.io.IOException
      • readUVInt

        public static int readUVInt​(java.io.DataInput in)
                             throws java.io.IOException
        Read unsigned variable length integer (ULEB128 encoding)
        Throws:
        java.io.IOException