Your browser does not allow storing cookies. We recommend enabling them.


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



 

 
What to read next:

  • Reduce Secure Shell risk. Get to know the NIST 7966.



    The NISTIR 7966 guideline from the Computer Security Division of NIST is a direct call to action for organizations regardless of industry and is a mandate for the US Federal government.
    Download now
  • ISACA Practitioner Guide for SSH



    With contributions from practitioners, specialists and SSH.COM experts, the ISACA “SSH: Practitioner Considerations” guide is vital best practice from the compliance and audit community.
    Download now