writer2latex
Class BatchHandlerImpl

java.lang.Object
  extended by writer2latex.BatchHandlerImpl
All Implemented Interfaces:
BatchHandler

public class BatchHandlerImpl
extends java.lang.Object
implements BatchHandler

This class implements a BatchHandler for command line usage


Constructor Summary
BatchHandlerImpl()
           
 
Method Summary
 boolean cancel()
          Notification that the conversion may be cancelled.
 void endConversion()
          Notification that the conversion has finished
 void endDirectory(java.lang.String sName, boolean bSuccess)
          Notification that a directory conversion has finished
 void endFile(java.lang.String sName, boolean bSuccess)
          Notification that a file conversion has finished
 void startConversion()
          Notification that the conversion is started
 void startDirectory(java.lang.String sName)
          Notification that a directory conversion starts
 void startFile(java.lang.String sName)
          Notification that a file conversion starts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchHandlerImpl

public BatchHandlerImpl()
Method Detail

startConversion

public void startConversion()
Description copied from interface: BatchHandler
Notification that the conversion is started

Specified by:
startConversion in interface BatchHandler

endConversion

public void endConversion()
Description copied from interface: BatchHandler
Notification that the conversion has finished

Specified by:
endConversion in interface BatchHandler

startDirectory

public void startDirectory(java.lang.String sName)
Description copied from interface: BatchHandler
Notification that a directory conversion starts

Specified by:
startDirectory in interface BatchHandler
Parameters:
sName - the name of the directory to convert

endDirectory

public void endDirectory(java.lang.String sName,
                         boolean bSuccess)
Description copied from interface: BatchHandler
Notification that a directory conversion has finished

Specified by:
endDirectory in interface BatchHandler
Parameters:
sName - the name of the directory
bSuccess - true if the conversion was successful (this only means that the index page was created with success, not that the conversion of files and subdirectories was successful)

startFile

public void startFile(java.lang.String sName)
Description copied from interface: BatchHandler
Notification that a file conversion starts

Specified by:
startFile in interface BatchHandler
Parameters:
sName - the name of the file to convert

endFile

public void endFile(java.lang.String sName,
                    boolean bSuccess)
Description copied from interface: BatchHandler
Notification that a file conversion has finished

Specified by:
endFile in interface BatchHandler
Parameters:
sName - the name of the file
bSuccess - true if the conversion of this file was successful

cancel

public boolean cancel()
Description copied from interface: BatchHandler
Notification that the conversion may be cancelled. The BatchConverter fires this event once per document. Cancelling the conversion does not delete files that was already converted

Specified by:
cancel in interface BatchHandler
Returns:
true if the handler wants to cancel the conversion