Class AppleFileHelper


  • public class AppleFileHelper
    extends java.lang.Object
    Helper class for handling Apple files.
    • Constructor Summary

      Constructors 
      Constructor Description
      AppleFileHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void extractFile​(RpcPerforceFile file)
      Extract the data fork and the resource fork from the Apple file.
      static byte[] getBytesFromFile​(java.io.File file)
      Gets the bytes from file.
      • Methods inherited from class java.lang.Object

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

      • AppleFileHelper

        public AppleFileHelper()
    • Method Detail

      • extractFile

        public static void extractFile​(RpcPerforceFile file)
        Extract the data fork and the resource fork from the Apple file.
        Parameters:
        file - the Apple file
      • getBytesFromFile

        public static byte[] getBytesFromFile​(java.io.File file)
                                       throws java.io.IOException
        Gets the bytes from file.
        Parameters:
        file - the file
        Returns:
        the bytes from file
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.