com.perforce.p4java.io.apple
Class AppleFileData

java.lang.Object
  extended by com.perforce.p4java.io.apple.AppleFileData

public final class AppleFileData
extends 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
static AppleFileData EMPTY_FILE_DATA
           
 
Constructor Summary
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
 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


Copyright © 2015 Perforce Software. All Rights Reserved.