public class FileTransferMode
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
| Constructor and Description |
|---|
FileTransferMode()
Creates a new instance of FileTransferMode
|
FileTransferMode(boolean inputStream,
boolean outputStream,
boolean errorStream)
Create a new instance with the property values preset.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a copy of this FileTransferMode object.
|
boolean |
equals(java.lang.Object obj)
Test whether two FileTransferMode objects have the same property
settings.
|
boolean |
getErrorStream()
Whether to transfer error stream files.
|
boolean |
getInputStream()
Whether to transfer error stream files.
|
boolean |
getOutputStream()
Whether to transfer error stream files.
|
int |
hashCode()
Returns a hash code based on the file transfer properties.
|
void |
setErrorStream(boolean errorStream)
Set whether to transfer error stream files.
|
void |
setInputStream(boolean inputStream)
Set whether to transfer error stream files.
|
void |
setOutputStream(boolean outputStream)
Set whether to transfer error stream files.
|
java.lang.String |
toString()
Returns a string containing the stream settings.
|
public FileTransferMode()
public FileTransferMode(boolean inputStream,
boolean outputStream,
boolean errorStream)
inputStream - whether to transfer input stream filesoutputStream - whether to transfer output stream fileserrorStream - whether to transfer error stream filespublic void setErrorStream(boolean errorStream)
errorStream - whether to transfer error stream filespublic boolean getErrorStream()
public void setInputStream(boolean inputStream)
inputStream - whether to transfer error stream filespublic boolean getInputStream()
public void setOutputStream(boolean outputStream)
outputStream - whether to transfer error stream filespublic boolean getOutputStream()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the Object to test for equalitypublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
The contents of this file are licensed under the Sun Industry Standards Source License version 1.2.
Copyright 2008, Sun Microsystems, Inc.