Class RandomAccessFileUtils


  • public final class RandomAccessFileUtils
    extends java.lang.Object
    Utility class with utility methods for random access files.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void fullyRead​(java.io.RandomAccessFile raf, byte[] data)
      Reads from an random access file until the provided array is filled.
      • Methods inherited from class java.lang.Object

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

      • fullyRead

        public static void fullyRead​(java.io.RandomAccessFile raf,
                                     byte[] data)
                              throws java.io.IOException
        Reads from an random access file until the provided array is filled. Data is read from the current position in the file.
        Parameters:
        raf - the file to read data from
        data - the array that will receive the data
        Throws:
        java.io.IOException - failed to read the data