Oracle® Collaboration Suite Workspaces API Reference
10g Release 1 (10.1.2)

B25479-01


oracle.workspaces.resource.files
Class CwFileDefinition

java.lang.Object
  extended byoracle.workspaces.resource.CwResourceItemDefinition
      extended byoracle.workspaces.resource.files.CwFilesItemDefinition
          extended byoracle.workspaces.resource.files.CwFileDefinition


public class CwFileDefinition
extends CwFilesItemDefinition

Constructor Summary
CwFileDefinition(java.lang.String name, java.io.InputStream is)
Constructor.

Method Summary
java.lang.String getAction()
Accessor method returns the action fro this file definition.
java.io.InputStream getInputStream()
Accessor method returns the input stream for this file definition.
void setAction(java.lang.String action)
Sets the action string to be used for the file creation operation.
void setInputStream(java.io.InputStream is)
Sets the input stream for this file definition.

Methods inherited from class oracle.workspaces.resource.files.CwFilesItemDefinition
setDescription, setName

Methods inherited from class oracle.workspaces.resource.CwResourceItemDefinition
getDescription, getName

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CwFileDefinition

public CwFileDefinition(java.lang.String name,
                        java.io.InputStream is)
                 throws CwAttrValException
Constructor.
Parameters:
name - The name of the file to be created. Must be specified.
is - The input stream that is the source for the file conten. Must be specified.

Method Detail

getAction

public java.lang.String getAction()
Accessor method returns the action fro this file definition.

getInputStream

public java.io.InputStream getInputStream()
Accessor method returns the input stream for this file definition.

setAction

public void setAction(java.lang.String action)
Sets the action string to be used for the file creation operation.
Parameters:
action - One of ACT_AUTO_NAME, ACT_OVERWRITE, ACT_VERSION.

setInputStream

public void setInputStream(java.io.InputStream is)
Sets the input stream for this file definition.
Parameters:
is - The input stream to be used when creating the file.

Copyright © 2001, 2005, Oracle. All rights reserved.