Class AppleFileData


  • public final class AppleFileData
    extends java.lang.Object
    This class is for representing the AppleSingle/Double file or its file forks (data fork and resource fork) and the related Finder meta-file information.
    • Constructor Summary

      Constructors 
      Constructor Description
      AppleFileData()
      Instantiates a new apple file data.
      AppleFileData​(byte[] data)
      Instantiates a new apple file data.
      AppleFileData​(byte[] data, int offset, int length)
      Instantiates a new apple file data.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBytes()
      Gets the bytes.
      byte[] getData()
      Gets the data.
      int getLength()
      Gets the length.
      int getOffset()
      Gets the offset.
      • Methods inherited from class java.lang.Object

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

      • EMPTY_FILE_DATA

        public static final AppleFileData EMPTY_FILE_DATA
    • Constructor Detail

      • AppleFileData

        public AppleFileData()
        Instantiates a new apple file data.
      • AppleFileData

        public AppleFileData​(byte[] data)
        Instantiates a new apple file data.
        Parameters:
        data - the data
      • AppleFileData

        public AppleFileData​(byte[] data,
                             int offset,
                             int length)
        Instantiates a new apple file data.
        Parameters:
        data - the data
        offset - the offset
        length - the length
    • Method Detail

      • getBytes

        public byte[] getBytes()
        Gets the bytes.
        Returns:
        the bytes
      • getData

        public byte[] getData()
        Gets the data.
        Returns:
        the data
      • getOffset

        public int getOffset()
        Gets the offset.
        Returns:
        the offset
      • getLength

        public int getLength()
        Gets the length.
        Returns:
        the length