org.opensync.tools
Class DeleteFile

java.lang.Object
  extended byorg.opensync.tools.DeleteFile

public class DeleteFile
extends java.lang.Object

Connect to url, send data, and recieve data insided a timed thread so we don't block indefinitely if url has a socket issue.

Author:
Keith Stumpf

Nested Class Summary
(package private)  class DeleteFile.DeleteFileThread
          Inner thread class which actually does the file delete
 
Constructor Summary
DeleteFile()
           
 
Method Summary
 void go(java.lang.String sFileName, long lSleepBeforeDelete, long lTimeoutInterval, long lSleepTime)
          Attempts to delete a file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteFile

public DeleteFile()
Method Detail

go

public void go(java.lang.String sFileName,
               long lSleepBeforeDelete,
               long lTimeoutInterval,
               long lSleepTime)
        throws java.lang.Exception,
               java.io.InterruptedIOException,
               java.io.IOException,
               java.net.MalformedURLException
Attempts to delete a file

Parameters:
sFileName - Filename to delete
lSleepBeforeDelete - Amount of time to sleep before deleting file.
lTimeoutInterval - Amount of time in milliseconds to timeout request.
lSleepTime - Amount of time to sleep in between checking timeout interval.
Throws:
java.net.MalformedURLException - If there is a URL error
java.io.InterruptedIOException - If there is an interupt sent to the thread.
java.io.IOException - If there is an I/O error
java.lang.Exception


Copyright © 2004 sourceforge. All Rights Reserved.