wt.step.processor.content
Class ContentHandler

java.lang.Object
  extended bywt.step.processor.content.ContentHandler

public class ContentHandler
extends Object


Field Summary
private  File _fileDirectory
           
private static int BUFFER_SIZE
           
private static byte[] CONTENT_BUFFER
           
 
Constructor Summary
ContentHandler(File fileDirectory)
           
 
Method Summary
 void downloadContentsOf(FormatContentHolder document)
           
 String getContentDirectory()
           
(package private) static String stripPrefixDir(String dirName, String pathName)
           
 void uploadContentsTo(FormatContentHolder document, String documentNumber, Vector fileNames)
           
private  String withoutFilePath(String filePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

private static final int BUFFER_SIZE
See Also:
Constant Field Values

CONTENT_BUFFER

private static final byte[] CONTENT_BUFFER

_fileDirectory

private File _fileDirectory
Constructor Detail

ContentHandler

public ContentHandler(File fileDirectory)
Method Detail

getContentDirectory

public String getContentDirectory()

downloadContentsOf

public void downloadContentsOf(FormatContentHolder document)
                        throws WTException,
                               PropertyVetoException,
                               IOException
Throws:
WTException
PropertyVetoException
IOException

withoutFilePath

private String withoutFilePath(String filePath)

uploadContentsTo

public void uploadContentsTo(FormatContentHolder document,
                             String documentNumber,
                             Vector fileNames)
                      throws WTException,
                             IOException,
                             PropertyVetoException
Throws:
WTException
IOException
PropertyVetoException

stripPrefixDir

static String stripPrefixDir(String dirName,
                             String pathName)