oracle.workspaces.resource.files
Class CwFileDefinition
java.lang.Object
oracle.workspaces.resource.CwResourceItemDefinition
oracle.workspaces.resource.files.CwFilesItemDefinition
oracle.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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.