Package com.perforce.p4java.io.apple
Class AppleFileData
- java.lang.Object
-
- com.perforce.p4java.io.apple.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.
-
-
Field Summary
Fields Modifier and Type Field Description static AppleFileData
EMPTY_FILE_DATA
-
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.
-
-
-
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 dataoffset
- the offsetlength
- the length
-
-