org.ow2.weblab.content.binary
Class BinaryFolderContentManager

java.lang.Object
  extended by org.ow2.weblab.content.FolderContentManager
      extended by org.ow2.weblab.content.binary.BinaryFolderContentManager

public class BinaryFolderContentManager
extends FolderContentManager


Field Summary
 
Fields inherited from class org.ow2.weblab.content.FolderContentManager
bufferSize, folder, propertyFileName, propertyKey, SIMPLE_RESOURCE_RDF_HELPER
 
Constructor Summary
protected BinaryFolderContentManager(java.lang.String folderPath)
           
 
Method Summary
protected  void copyFile(java.io.File file, java.io.File newFile)
           
static BinaryFolderContentManager getInstance()
           
static BinaryFolderContentManager getInstance(java.lang.String folderPath)
           
 void saveFile(java.io.File file, java.lang.String uri)
          Add new file to the content manager (copy it to the internal repository)
 
Methods inherited from class org.ow2.weblab.content.FolderContentManager
checkFolder, getFileFromResourceAndPredicate, getFileFromWLRi, getFileFromWLRi, getFolder, getFolderValue, getNativeFileFromResource, getNormalisedFileFromResource, setFolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryFolderContentManager

protected BinaryFolderContentManager(java.lang.String folderPath)
                              throws org.ow2.weblab.core.extended.exception.WebLabUncheckedException
Throws:
org.ow2.weblab.core.extended.exception.WebLabUncheckedException
Method Detail

copyFile

protected void copyFile(java.io.File file,
                        java.io.File newFile)
                 throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
Parameters:
file - Input file
newFile - Output file
Throws:
org.ow2.weblab.core.extended.exception.WebLabCheckedException - If an IOException occurs.

saveFile

public void saveFile(java.io.File file,
                     java.lang.String uri)
              throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
Add new file to the content manager (copy it to the internal repository)

Parameters:
file - file to copy
uri - identify the future content
Throws:
org.ow2.weblab.core.extended.exception.WebLabCheckedException

getInstance

public static BinaryFolderContentManager getInstance(java.lang.String folderPath)
                                              throws org.ow2.weblab.core.extended.exception.WebLabUncheckedException
Parameters:
folderPath - The path to the folder.
Returns:
The BinaryFolderContentManager
Throws:
org.ow2.weblab.core.extended.exception.WebLabUncheckedException

getInstance

public static BinaryFolderContentManager getInstance()
                                              throws org.ow2.weblab.core.extended.exception.WebLabUncheckedException
Returns:
The BinaryFolderContentManager
Throws:
org.ow2.weblab.core.extended.exception.WebLabUncheckedException


Copyright © 2004-2010. All Rights Reserved.