org.tranche.publish
Class PublishFileTool

java.lang.Object
  extended by org.tranche.publish.PublishFileTool

public class PublishFileTool
extends java.lang.Object

This tool is used to publish a passphrase for an encrypted upload.

Author:
James "Augie" Hill - augman85@gmail.com

Field Summary
static int DEFAULT_THREADS
          Default parameters
 
Constructor Summary
PublishFileTool()
           
 
Method Summary
 PublishFileToolReport execute()
           
 boolean isLocked()
           
 boolean isPaused()
          Gets whether the upload is paused.
 boolean isStopped()
           
 void setPause(boolean paused)
          Set whether the upload is paused.
 void stop()
          Stops the upload.
 void throwExceptionIfLocked()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_THREADS

public static int DEFAULT_THREADS
Default parameters

Constructor Detail

PublishFileTool

public PublishFileTool()
Method Detail

isLocked

public boolean isLocked()
Returns:

throwExceptionIfLocked

public void throwExceptionIfLocked()

setPause

public void setPause(boolean paused)

Set whether the upload is paused.

Parameters:
paused - Whether the upload is paused.

isPaused

public boolean isPaused()

Gets whether the upload is paused.

Returns:
Whether the upload is paused.

stop

public void stop()

Stops the upload.


isStopped

public boolean isStopped()
Returns:

execute

public PublishFileToolReport execute()
Returns:


This code is free for use both commercially and non-commercially as stated in the project's license