coders
Class ReversibleDecoder

java.lang.Object
  extended by coders.Decoder
      extended by coders.ReversibleDecoder
Direct Known Subclasses:
DifferenceExpansionDecoder, ProgressiveDivisibilityDecoder

public abstract class ReversibleDecoder
extends Decoder

Author:
Jonathan L Dautrich Jr.

Field Summary
protected  Bitmap restoredBitmap
           
 
Fields inherited from class coders.Decoder
decoded, encodedBitmap, payload
 
Constructor Summary
ReversibleDecoder(Bitmap encodedBitmap)
          Initializes this reversible decoder with the specified bitmap.
 
Method Summary
abstract  void decode()
          Decodes the current bitmap, obtaining and storing the original payload and the original image.
 Bitmap getRestoredBitmap()
          Retrieves the restored bitmap, running the decode operation first if necessary.
 
Methods inherited from class coders.Decoder
getEncodedBitmap, getPayload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

restoredBitmap

protected Bitmap restoredBitmap
Constructor Detail

ReversibleDecoder

public ReversibleDecoder(Bitmap encodedBitmap)
Initializes this reversible decoder with the specified bitmap.

Parameters:
encodedBitmap -
Method Detail

decode

public abstract void decode()
Decodes the current bitmap, obtaining and storing the original payload and the original image. They can be obtained by calling Decoder.getPayload() and getRestoredBitmap(), respectively. BitSequence. Should execute only if it has not already been called.

Specified by:
decode in class Decoder

getRestoredBitmap

public Bitmap getRestoredBitmap()
Retrieves the restored bitmap, running the decode operation first if necessary.

Returns: