blackboard.cms.filesystem
Class CSFile

java.lang.Object
  extended by blackboard.cms.filesystem.CSEntry
      extended by blackboard.cms.filesystem.CSFile

public class CSFile
extends CSEntry

An object for a file in the file system.

Since:
Bb CS 1.2
Version:
$Revision: #1 $

Method Summary
 void getFileContent(java.io.OutputStream out)
          Return the content for the version this file object points to by writing to the passed OutputStream.
 java.lang.String getFileContentType()
          Get the content type for this file.
 void setFileContentType(java.lang.String str)
          Change the content type for this file.
 
Methods inherited from class blackboard.cms.filesystem.CSEntry
delete, deleteAccessControlEntry, getAccessControlEntries, getAccessControlEntry, getBaseName, getCreationTimestamp, getCSEntryMetadata, getFileSystemEntry, getFullPath, getLastUpdateTimestamp, getParentPath, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setFileContentType

public void setFileContentType(java.lang.String str)
                        throws CSFileSystemException
Change the content type for this file.

Parameters:
str - a String representing the new content type
Throws:
CSFileSystemException

getFileContentType

public java.lang.String getFileContentType()
                                    throws CSFileSystemException
Get the content type for this file.

Returns:
a String representing the content type for the CSFile
Throws:
CSFileSystemException

getFileContent

public void getFileContent(java.io.OutputStream out)
                    throws CSFileSystemException
Return the content for the version this file object points to by writing to the passed OutputStream.

Parameters:
out - an OutputStream to write to
Throws:
CSFileSystemException


Copyright © 2003-2004 Blackboard, Inc. All Rights Reserved.