Your browser does not support HTML5 local storage or you have disabled it. Some functionality on this site, including saving your privacy settings and offering you special discounts, uses local storage and may not work with local storage disabled. We recommend allowing the use of local storage in your browser. In some browsers, it is the same setting used for disabling cookies.


com.ssh.sft
Class CharConversion

java.lang.Object
  extended bycom.ssh.sft.CharConversion
All Implemented Interfaces:
com.ssh.sft.SshSftInteract

public class CharConversion
extends Object
implements com.ssh.sft.SshSftInteract

Character conversion specifiers. Instances of this class represent various ways in which newlines may need to be converted when transferring text files between platforms. There are only a fixed number of instances of this class, and they can be compared by pointer identity.


Field Summary
static CharConversionDOS
          The character conversion for DOS files.
static CharConversionMAC
          The character conversion for MAC files.
static intSSH_SFT_INTERACT_ABORT
           
static intSSH_SFT_INTERACT_ASCII_CONV_DOS
           
static intSSH_SFT_INTERACT_ASCII_CONV_MAC
           
static intSSH_SFT_INTERACT_ASCII_CONV_UNIX
           
static intSSH_SFT_INTERACT_NO
           
static intSSH_SFT_INTERACT_YES
           
static CharConversionUNIX
          The character conversion for UNIX files.
 
Method Summary
 StringtoString()
          Returns the name of the conversion.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DOS

public static CharConversion DOS
The character conversion for DOS files. In DOS files, the newline separator is CR LF.


UNIX

public static CharConversion UNIX
The character conversion for UNIX files. In UNIX files, the newline separator is LF.


MAC

public static CharConversion MAC
The character conversion for MAC files. In MAC files, the newline separator is CR.


SSH_SFT_INTERACT_NO

public static final int SSH_SFT_INTERACT_NO
See Also:
Constant Field Values

SSH_SFT_INTERACT_YES

public static final int SSH_SFT_INTERACT_YES
See Also:
Constant Field Values

SSH_SFT_INTERACT_ABORT

public static final int SSH_SFT_INTERACT_ABORT
See Also:
Constant Field Values

SSH_SFT_INTERACT_ASCII_CONV_DOS

public static final int SSH_SFT_INTERACT_ASCII_CONV_DOS
See Also:
Constant Field Values

SSH_SFT_INTERACT_ASCII_CONV_UNIX

public static final int SSH_SFT_INTERACT_ASCII_CONV_UNIX
See Also:
Constant Field Values

SSH_SFT_INTERACT_ASCII_CONV_MAC

public static final int SSH_SFT_INTERACT_ASCII_CONV_MAC
See Also:
Constant Field Values
Method Detail

toString

public String toString()
Returns the name of the conversion. The returned value is one of "DOS", "UNIX" or "MAC".

Returns:
the name of the conversion


===AUTO_SCHEMA_MARKUP===