code: public void setTransferMode(int transferMode) {
  		if (transferMode != MODE_BINARY && transferMode != MODE_TEXT)
  			throw new IllegalArgumentException(
  					"Mode can only be either binary or text");
  
  		this.transferMode = transferMode;
  
  		if (Log.isDebugEnabled()) {
  			Log.debug(this, "Transfer mode set to "
  					+ (transferMode == MODE_BINARY ? "binary" : "text"));
  		}
  	}
docs: <p>
  Sets the transfer mode for current operations. The valid modes are:<br>
  <br>
  {@link #MODE_BINARY} - Files are transferred in binary mode and no
  processing of text files is performed (default mode).<br>
  <br>
  {@link #MODE_TEXT} - For servers supporting version 4+ of the SFTP
  protocol files are transferred in text mode. For earlier protocol
  versions the files are transfered in binary mode but the client performs
  processing of text; if files are written to the remote server the client
  ensures that the line endings conform to the remote EOL mode set using
  {@link setRemoteEOL(int)}. For files retrieved from the server the EOL
  policy is based upon System policy as defined by the "line.seperator"
  system property.
  </p>
  
  @param transferMode
  int