Class BinaryUtils


  • public class BinaryUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BinaryUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long dwordAlign​(long off)  
      static java.lang.String readFixedByteChars​(java.io.RandomAccessFile raf, int count)  
      static int readUInt16​(java.io.RandomAccessFile raf)  
      static long readUInt32​(java.io.RandomAccessFile raf)  
      static int readUInt8​(java.io.RandomAccessFile raf)  
      static java.lang.String readWCHAR​(java.io.RandomAccessFile raf, int maxLen)  
      • Methods inherited from class java.lang.Object

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

      • BinaryUtils

        public BinaryUtils()
    • Method Detail

      • readUInt32

        public static long readUInt32​(java.io.RandomAccessFile raf)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • readUInt16

        public static int readUInt16​(java.io.RandomAccessFile raf)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • readFixedByteChars

        public static java.lang.String readFixedByteChars​(java.io.RandomAccessFile raf,
                                                          int count)
                                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • readWCHAR

        public static java.lang.String readWCHAR​(java.io.RandomAccessFile raf,
                                                 int maxLen)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • readUInt8

        public static int readUInt8​(java.io.RandomAccessFile raf)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • dwordAlign

        public static long dwordAlign​(long off)