Lines 104-114
Link Here
|
104 |
* Options constant (value 1 <<0) for specifying a stream |
104 |
* Options constant (value 1 <<0) for specifying a stream |
105 |
* that will append data to a file. |
105 |
* that will append data to a file. |
106 |
* |
106 |
* |
107 |
* @see IFileService#getOutputStream(String, String, boolean, int, IProgressMonitor) |
107 |
* @see IFileService#getOutputStream(String, String, int, IProgressMonitor) |
108 |
*/ |
108 |
*/ |
109 |
public static final int APPEND = 1 << 0; |
109 |
public static final int APPEND = 1 << 0; |
110 |
|
110 |
|
111 |
/** |
111 |
/** |
|
|
112 |
* Options constant (value 2 <<0) for specifying that a file |
113 |
* is Text instead of the default Binary. |
114 |
* |
115 |
* @see IFileService#getOutputStream(String, String, int, IProgressMonitor) |
116 |
*/ |
117 |
public static final int TEXT_MODE = 2 << 0; |
118 |
|
119 |
/** |
112 |
* Options constant (value 0) to indicate that no bit options are set. |
120 |
* Options constant (value 0) to indicate that no bit options are set. |
113 |
*/ |
121 |
*/ |
114 |
public static final int NONE = 0; |
122 |
public static final int NONE = 0; |
Lines 470-476
Link Here
|
470 |
* @throws SystemMessageException if an error occurs. |
478 |
* @throws SystemMessageException if an error occurs. |
471 |
* @since 2.0 |
479 |
* @since 2.0 |
472 |
* @deprecated As of 3.0M4, replaced by |
480 |
* @deprecated As of 3.0M4, replaced by |
473 |
* {@link #getOutputStream(String, String, boolean, int, IProgressMonitor)} |
481 |
* {@link #getOutputStream(String, String, int, IProgressMonitor)} |
474 |
*/ |
482 |
*/ |
475 |
public OutputStream getOutputStream(String remoteParent, String remoteFile, boolean isBinary, IProgressMonitor monitor) throws SystemMessageException; |
483 |
public OutputStream getOutputStream(String remoteParent, String remoteFile, boolean isBinary, IProgressMonitor monitor) throws SystemMessageException; |
476 |
|
484 |
|
Lines 478-491
Link Here
|
478 |
* Gets the output stream to write/append to a remote file. Clients should close the output stream when done. |
486 |
* Gets the output stream to write/append to a remote file. Clients should close the output stream when done. |
479 |
* @param remoteParent the absolute path of the parent. |
487 |
* @param remoteParent the absolute path of the parent. |
480 |
* @param remoteFile the name of the remote file. |
488 |
* @param remoteFile the name of the remote file. |
481 |
* @param isBinary <code>true</code> if the file is a binary file, <code>false</code> otherwise. |
489 |
* @param options bit wise or of option constants. Valid constants are {@link IFileService#APPEND}, {@link IFileService#TEXT_MODE}, and {@link IFileService#NONE} |
482 |
* @param options bit wise or of option constants. Valid constants are {@link IFileService#APPEND} and {@link IFileService#NONE} |
|
|
483 |
* @param monitor the progress monitor. |
490 |
* @param monitor the progress monitor. |
484 |
* @return the input stream to access the contents of the remote file. |
491 |
* @return the input stream to access the contents of the remote file. |
485 |
* @throws SystemMessageException if an error occurs. |
492 |
* @throws SystemMessageException if an error occurs. |
486 |
* @since 3.0 |
493 |
* @since 3.0 |
487 |
*/ |
494 |
*/ |
488 |
public OutputStream getOutputStream(String remoteParent, String remoteFile, boolean isBinary, int options, IProgressMonitor monitor) throws SystemMessageException; |
495 |
public OutputStream getOutputStream(String remoteParent, String remoteFile, int options, IProgressMonitor monitor) throws SystemMessageException; |
489 |
|
496 |
|
490 |
/** |
497 |
/** |
491 |
* Indicates whether this file service supports code page conversion using |
498 |
* Indicates whether this file service supports code page conversion using |