Package com.perforce.p4java.io.apple
Class AppleFileData
java.lang.Object
com.perforce.p4java.io.apple.AppleFileData
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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates 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
-
Field Details
-
EMPTY_FILE_DATA
-
-
Constructor Details
-
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 dataoffset- the offsetlength- the length
-
-
Method Details
-
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
-