Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jempeg.empeg.emptool
Class FIDLocalFile  view FIDLocalFile download FIDLocalFile.java

java.lang.Object
  extended byorg.jempeg.empeg.emptool.AbstractFIDNode
      extended byorg.jempeg.empeg.emptool.FIDLocalFile
All Implemented Interfaces:
java.io.Serializable

public class FIDLocalFile
extends AbstractFIDNode

FIDLocalFile is used to represent a file that has just been added to the player database but has not yet been synced with the Empeg.

Version:
$Revision: 1.11 $

Field Summary
private  ImportFileIfc myFile
           
private static java.util.Hashtable myFileToNode
           
private  java.lang.Object myID
           
 
Fields inherited from class org.jempeg.empeg.emptool.AbstractFIDNode
 
Constructor Summary
FIDLocalFile(PlayerDatabase _db, ImportFileIfc _file, NodeTags _tags)
           
 
Method Summary
 AbstractFIDNode cloneInto(PlayerDatabase _db)
          FIDLocalFiles are always copied-by-reference, because they are transient stubs that are only created between syncs.
static FIDLocalFile create(PlayerDatabase _db, ImportFileIfc _file)
           
 void delete()
           
 void identify()
          Identifies a node and resets all the frame info tags on the given node.
 int repair(boolean _doRepair)
           
 void synchronize()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class org.jempeg.empeg.emptool.AbstractFIDNode
equals, getDB, getFID, getGFID, getIntTag, getLongTag, getReferenceCount, getTag, getTag, getTags, getTitle, getType, hashCode, increaseReference, isDirty, isReferenced, markDirty, removeReference, resetReferences, setDB, setTag, setTag, setTitle, unmarkDirty, whichTags
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

myFileToNode

private static java.util.Hashtable myFileToNode

myID

private java.lang.Object myID

myFile

private ImportFileIfc myFile
Constructor Detail

FIDLocalFile

public FIDLocalFile(PlayerDatabase _db,
                    ImportFileIfc _file,
                    NodeTags _tags)
             throws java.io.IOException
Method Detail

create

public static FIDLocalFile create(PlayerDatabase _db,
                                  ImportFileIfc _file)
                           throws java.io.IOException

delete

public void delete()
            throws java.io.IOException
Overrides:
delete in class AbstractFIDNode

repair

public int repair(boolean _doRepair)
           throws java.io.IOException
Specified by:
repair in class AbstractFIDNode

synchronize

public void synchronize()
                 throws java.io.IOException
Specified by:
synchronize in class AbstractFIDNode

cloneInto

public AbstractFIDNode cloneInto(PlayerDatabase _db)
FIDLocalFiles are always copied-by-reference, because they are transient stubs that are only created between syncs. If you try to clone a remote LocalFile, it will throw an IllegalArgumentException.

Specified by:
cloneInto in class AbstractFIDNode

identify

public void identify()
              throws java.io.IOException
Identifies a node and resets all the frame info tags on the given node.

Specified by:
identify in class AbstractFIDNode

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).

Overrides:
toString in class AbstractFIDNode