nan.tools
Class BackgroundAttachmentSaver

java.lang.Object
  extended byjava.lang.Thread
      extended bynan.tools.AbstractBackgroundTask
          extended bynan.tools.BackgroundAttachmentSaver
All Implemented Interfaces:
BackgroundTask, java.lang.Runnable

public class BackgroundAttachmentSaver
extends AbstractBackgroundTask

A Background task to handle attachment saving to disk.

Version:
1.1, 1/6/04
Author:
John David Ratliff

Field Summary
 
Fields inherited from class nan.tools.AbstractBackgroundTask
finished
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BackgroundAttachmentSaver(Attachment attachment, java.io.File file)
          Creates a new BackgroundAttachmentSaver object.
 
Method Summary
 void run()
          Serializes the attachment to file.
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class nan.tools.AbstractBackgroundTask
isFinished
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BackgroundAttachmentSaver

public BackgroundAttachmentSaver(Attachment attachment,
                                 java.io.File file)
Creates a new BackgroundAttachmentSaver object.

Parameters:
attachment - The Attachment.
file - The File to save it to.
Method Detail

run

public void run()
Serializes the attachment to file.


toString

public java.lang.String toString()
Returns a String representation of this object.

Returns:
A String representation.