org.ow2.weblab.content.binary
Class BinaryFolderContentManager
java.lang.Object
org.ow2.weblab.content.FolderContentManager
org.ow2.weblab.content.binary.BinaryFolderContentManager
public class BinaryFolderContentManager
- extends FolderContentManager
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryFolderContentManager
protected BinaryFolderContentManager(java.lang.String folderPath)
throws org.ow2.weblab.core.extended.exception.WebLabUncheckedException
- Throws:
org.ow2.weblab.core.extended.exception.WebLabUncheckedException
copyFile
protected void copyFile(java.io.File file,
java.io.File newFile)
throws org.ow2.weblab.core.extended.exception.WebLabCheckedException
- Parameters:
file - Input filenewFile - 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 copyuri - 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.