com.rocketdivision.jstarburn
Interface JStarBurnCallBack


public interface JStarBurnCallBack

Callback interaface for progress reporting


Field Summary
static intCALLBACK_BAD_BLOCK_HIT
          Bad block encountered dring grabbing.
static intCALLBACK_ECCEDC_BAD_BLOCK_HIT
          ECC/EDC bad block encountered dring grabbing.
static intCALLBACK_ERASE_PROGRESS
          Erase progress callback.
static intCALLBACK_FILE_PROGRESS
          File writing progress callback.
static intCALLBACK_READ_PROGRESS
          Read progress callback.
static intCALLBACK_READ_RETRY
          Read retry is attempted dring grabbing.
static intCALLBACK_SPLIT_BEGIN
          New split section is processed during grabbing.
static intCALLBACK_TRACK_BEGIN
          New track is processed during grabbing.
static intCALLBACK_VERIFY_PROGRESS
          Verify progress callback.
static intCALLBACK_WRITE_PROGRESS
          Write progress callback.
 
Method Summary
 voidbufferCallback(int percent)
          Buffer status report
 voidfileCallback(java.lang.String fileName)
          Called when file or folder is added to file tree
 voidprogressCallback(int callbackType, int value1, int value2)
          Called to report status of current operation
 voidsizeCallback(long sizeInBytes)
          Size report (when burning tree or image)
 

Field Detail

CALLBACK_WRITE_PROGRESS

public static final int CALLBACK_WRITE_PROGRESS
Write progress callback. First value passed with callback contains percent completed. Second value is nor used

See Also:
Constant Field Values

CALLBACK_VERIFY_PROGRESS

public static final int CALLBACK_VERIFY_PROGRESS
Verify progress callback. First value passed with callback contains percent completed. Second value is nor used

See Also:
Constant Field Values

CALLBACK_READ_PROGRESS

public static final int CALLBACK_READ_PROGRESS
Read progress callback. First value passed with callback contains percent completed. Second value is nor used

See Also:
Constant Field Values

CALLBACK_ERASE_PROGRESS

public static final int CALLBACK_ERASE_PROGRESS
Erase progress callback. First value passed with callback contains percent completed. Second value is nor used

See Also:
Constant Field Values

CALLBACK_FILE_PROGRESS

public static final int CALLBACK_FILE_PROGRESS
File writing progress callback. First value passed with callback contains percent completed. Second value is nor used

See Also:
Constant Field Values

CALLBACK_TRACK_BEGIN

public static final int CALLBACK_TRACK_BEGIN
New track is processed during grabbing. First value passed with callback contains track number. Second value contains total number of tracks

See Also:
Constant Field Values

CALLBACK_SPLIT_BEGIN

public static final int CALLBACK_SPLIT_BEGIN
New split section is processed during grabbing. First value passed with callback contains split section number. Second value contains total number of split sections

See Also:
Constant Field Values

CALLBACK_BAD_BLOCK_HIT

public static final int CALLBACK_BAD_BLOCK_HIT
Bad block encountered dring grabbing. First value contains number of bad blocks encountered and second value contains logical block address

See Also:
Constant Field Values

CALLBACK_ECCEDC_BAD_BLOCK_HIT

public static final int CALLBACK_ECCEDC_BAD_BLOCK_HIT
ECC/EDC bad block encountered dring grabbing. First value contains number of bad blocks encountered and second value contains logical block address

See Also:
Constant Field Values

CALLBACK_READ_RETRY

public static final int CALLBACK_READ_RETRY
Read retry is attempted dring grabbing. First value contains logical block address and second value contains transfer size in logical blocks

See Also:
Constant Field Values
Method Detail

progressCallback

public void progressCallback(int callbackType,
                             int value1,
                             int value2)
Called to report status of current operation

Parameters:
callbackType - callback type
value1 - first value passed with callback
value2 - second value passed with callback

fileCallback

public void fileCallback(java.lang.String fileName)
Called when file or folder is added to file tree

Parameters:
fileName - file or folder name

bufferCallback

public void bufferCallback(int percent)
Buffer status report

Parameters:
percent - buffer load percent

sizeCallback

public void sizeCallback(long sizeInBytes)
Size report (when burning tree or image)

Parameters:
sizeInBytes - total size in bytes to burn