Class NGForestSaver

java.lang.Object
  extended by java.lang.Thread
      extended by NGForestSaver
All Implemented Interfaces:
ProgressSource, java.lang.Runnable

public class NGForestSaver
extends java.lang.Thread
implements ProgressSource

Class NGForestSaver saves result trees to a local disc. It communicates with the server and asks it to send the result trees one by one. Optionally, it adds an information about matching nodes to the trees.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
static int FORMAT_FS
           
static int SAVING_CANCELED_BY_INVOKER
           
static int SAVING_CANCELED_BY_SAVER
           
static int SAVING_OK
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
NGForestSaver(NGClient p_jaaa, ShowMessagesAble p_mess, java.util.ResourceBundle p_i18n, SavingFinishedListener p_saving_finished_listener)
           
 
Method Summary
 long getCountStart()
           
 java.lang.String getDestinationDirectory()
           
 java.lang.String getFilesPrefix()
           
 long getFilesSize()
           
 int getProgressCurrentValue()
          ProgressSource implementation
 int getProgressMaxValue()
          ProgressSource implementation
 int getProgressMinValue()
          ProgressSource implementation
 java.lang.String getProgressText()
          ProgressSource implementation
 boolean getPutMatchingMetaTag()
           
 long getRangeEnd()
           
 long getRangeStart()
           
 boolean getSaveMultipleOccurrences()
           
 int getStatus()
           
 boolean isSetOriginalNames()
           
 boolean isSetOriginalSeparation()
           
 boolean isSetOverwriteAll()
           
 void run()
           
 void setCountStart(long start)
           
 void setDestinationDirectory(java.lang.String path)
           
 void setFilesPrefix(java.lang.String prefix)
           
 void setFilesSize(long size)
           
 void setOriginalNames(boolean set)
           
 void setOriginalSeparation(boolean set)
           
 void setOverwriteAll(boolean set)
           
 void setPutMatchingMetaTag(boolean put)
           
 void setRangeEnd(long end)
           
 void setRangeStart(long start)
           
 void setSaveMultipleOccurrences(boolean save)
           
 void startSaving()
           
 void stopSaving()
           
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SAVING_OK

public static final int SAVING_OK
See Also:
Constant Field Values

SAVING_CANCELED_BY_INVOKER

public static final int SAVING_CANCELED_BY_INVOKER
See Also:
Constant Field Values

SAVING_CANCELED_BY_SAVER

public static final int SAVING_CANCELED_BY_SAVER
See Also:
Constant Field Values

FORMAT_FS

public static final int FORMAT_FS
See Also:
Constant Field Values
Constructor Detail

NGForestSaver

public NGForestSaver(NGClient p_jaaa,
                     ShowMessagesAble p_mess,
                     java.util.ResourceBundle p_i18n,
                     SavingFinishedListener p_saving_finished_listener)
Method Detail

getDestinationDirectory

public java.lang.String getDestinationDirectory()

setDestinationDirectory

public void setDestinationDirectory(java.lang.String path)

getFilesPrefix

public java.lang.String getFilesPrefix()

setFilesPrefix

public void setFilesPrefix(java.lang.String prefix)

getFilesSize

public long getFilesSize()

setFilesSize

public void setFilesSize(long size)

getPutMatchingMetaTag

public boolean getPutMatchingMetaTag()

setPutMatchingMetaTag

public void setPutMatchingMetaTag(boolean put)

getSaveMultipleOccurrences

public boolean getSaveMultipleOccurrences()

setSaveMultipleOccurrences

public void setSaveMultipleOccurrences(boolean save)

getRangeStart

public long getRangeStart()

setRangeStart

public void setRangeStart(long start)

getRangeEnd

public long getRangeEnd()

setRangeEnd

public void setRangeEnd(long end)

isSetOriginalSeparation

public boolean isSetOriginalSeparation()

setOriginalSeparation

public void setOriginalSeparation(boolean set)

isSetOriginalNames

public boolean isSetOriginalNames()

setOriginalNames

public void setOriginalNames(boolean set)

getCountStart

public long getCountStart()

setCountStart

public void setCountStart(long start)

isSetOverwriteAll

public boolean isSetOverwriteAll()

setOverwriteAll

public void setOverwriteAll(boolean set)

getProgressCurrentValue

public int getProgressCurrentValue()
ProgressSource implementation

Specified by:
getProgressCurrentValue in interface ProgressSource

getProgressText

public java.lang.String getProgressText()
ProgressSource implementation

Specified by:
getProgressText in interface ProgressSource

getProgressMinValue

public int getProgressMinValue()
ProgressSource implementation

Specified by:
getProgressMinValue in interface ProgressSource

getProgressMaxValue

public int getProgressMaxValue()
ProgressSource implementation

Specified by:
getProgressMaxValue in interface ProgressSource

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

getStatus

public int getStatus()

startSaving

public void startSaving()

stopSaving

public void stopSaving()