org.jaudiotagger.audio.asf.io
Class ModificationResult

java.lang.Object
  extended by org.jaudiotagger.audio.asf.io.ModificationResult

final class ModificationResult
extends java.lang.Object

Structure to tell the differences occurred by altering a chunk.

Author:
Christian Laireiter

Field Summary
private  long byteDifference
          Stores the difference of bytes.
private  int chunkDifference
          Stores the difference of the amount of chunks.
"-1" if the chunk disappeared upon modification.
"0" if the chunk was just modified.
"1" if a chunk has been created.
private  java.util.Set<GUID> occuredGUIDs
          Stores all GUIDs, which have been read.
 
Constructor Summary
ModificationResult(int chunkCountDiff, long bytesDiffer, GUID... occurred)
          Creates an instance.
ModificationResult(int chunkCountDiff, long bytesDiffer, java.util.Set<GUID> occurred)
          Creates an instance.
 
Method Summary
 long getByteDifference()
          Returns the difference of bytes.
 int getChunkCountDifference()
          Returns the difference of the amount of chunks.
 java.util.Set<GUID> getOccuredGUIDs()
          Returns all GUIDs which have been occurred during processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

byteDifference

private final long byteDifference
Stores the difference of bytes.


chunkDifference

private final int chunkDifference
Stores the difference of the amount of chunks.
"-1" if the chunk disappeared upon modification.
"0" if the chunk was just modified.
"1" if a chunk has been created.


occuredGUIDs

private final java.util.Set<GUID> occuredGUIDs
Stores all GUIDs, which have been read.

Constructor Detail

ModificationResult

public ModificationResult(int chunkCountDiff,
                          long bytesDiffer,
                          GUID... occurred)
Creates an instance.

Parameters:
chunkCountDiff - amount of chunks appeared, disappeared
bytesDiffer - amount of bytes added or removed.
occurred - all GUIDs which have been occurred, during processing

ModificationResult

public ModificationResult(int chunkCountDiff,
                          long bytesDiffer,
                          java.util.Set<GUID> occurred)
Creates an instance.

Parameters:
chunkCountDiff - amount of chunks appeared, disappeared
bytesDiffer - amount of bytes added or removed.
occurred - all GUIDs which have been occurred, during processing
Method Detail

getByteDifference

public long getByteDifference()
Returns the difference of bytes.

Returns:
the byte difference

getChunkCountDifference

public int getChunkCountDifference()
Returns the difference of the amount of chunks.

Returns:
the chunk count difference

getOccuredGUIDs

public java.util.Set<GUID> getOccuredGUIDs()
Returns all GUIDs which have been occurred during processing.

Returns:
see description.s