|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IPhysicalFile
Represents a physical file on the remote file system.
| Field Summary | |
|---|---|
static String |
COPY_RIGHT
|
| Method Summary | |
|---|---|
void |
appendContent(InputStream source,
boolean force,
IProgressMonitor monitor)
Appends the contents of the given input stream to this file. |
void |
appendContent(InputStream source,
boolean force,
String encoding,
IProgressMonitor monitor)
Appends the contents of the given input stream to this file. |
void |
create(InputStream source,
boolean force,
IProgressMonitor monitor)
Creates a new file. |
void |
create(InputStream source,
boolean force,
String encoding,
IProgressMonitor monitor)
Creates a new file. |
String |
getCharset()
|
InputStream |
getContents()
Returns an open input stream on the contents of this file. |
String |
getFileExtension()
Returns the file extension portion of this resource's name. |
void |
setContents(InputStream source,
boolean force,
IProgressMonitor monitor)
Sets the contents of this file to the bytes in the given input stream. |
void |
setContents(InputStream source,
boolean force,
String encoding,
IProgressMonitor monitor)
Sets the contents of this file to the bytes in the given input stream. |
void |
setFileExtension(String value)
Sets the file extension portion of this resource's name. |
| Methods inherited from interface com.ibm.ftt.resources.core.physical.IPhysicalResource |
|---|
delete, deleteOverriddenPropertiesInCategory, deleteOverride, exists, getCurrentPropertyGroup, getFullPath, getModificationStamp, getModificationStamp, getName, getOverriddenProperties, getParent, getPersistentProperty, getResourcePublisher, getSessionProperty, refresh, rename, setCurrentPropertyGroup, setOverride, setPersistentProperty, setSessionProperty |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
static final String COPY_RIGHT
| Method Detail |
|---|
void appendContent(InputStream source,
boolean force,
IProgressMonitor monitor)
throws OperationFailedException
This is a convenience method, equivalent to:
appendContent(source, force, null, monitor);
source - an input stream containing the contents to appendforce - Currently not used. It is recommended to set this to
true for now.monitor - a progress monitor, or null if progress
reporting is not desired
OperationFailedException - if the append operation failedIPhysicalFile.appendContent(InputStream, boolean, String, IProgressMonitor)
void appendContent(InputStream source,
boolean force,
String encoding,
IProgressMonitor monitor)
throws OperationFailedException
source - an input stream containing the contents to appendforce - Currently not used. It is recommended to set this to
true for now.encoding - the file encoding of the source input stream.
If null is specified, the default local file
encoding is usedmonitor - a progress monitor, or null if progress
reporting is not desired
OperationFailedException - if the append operation failedIPhysicalFile.appendContent(InputStream, boolean, IProgressMonitor)
String getCharset()
throws OperationFailedException
OperationFailedExceptionIPhysicalFile.getContents()
InputStream getContents()
throws OperationFailedException
OperationFailedException - if failed to get contentsIPhysicalFile.getCharset()
void setContents(InputStream source,
boolean force,
IProgressMonitor monitor)
throws OperationFailedException
source - an input stream containing the new contents of this fileforce - Currently not used. It is recommended to set this to
true for now.monitor - a progress monitor, or null if progress
reporting is not desired
OperationFailedException - if failed to set the contents
void setContents(InputStream source,
boolean force,
String encoding,
IProgressMonitor monitor)
throws OperationFailedException
source - an input stream containing the new contents of this fileforce - Currently not used. It is recommended to set this to
true for now.encoding - the file encoding of the source input stream.
If null is specified, the default local file
encoding is usedmonitor - a progress monitor, or null if progress
reporting is not desired
OperationFailedException - if failed to set the contents
void create(InputStream source,
boolean force,
IProgressMonitor monitor)
throws OperationFailedException
source - an input stream containing the initial contents of this fileforce - Currently not used. It is recommended to set this to
true for now.monitor - a progress monitor, or null if progress
reporting is not desired
OperationFailedException - if failed to create the file
void create(InputStream source,
boolean force,
String encoding,
IProgressMonitor monitor)
throws OperationFailedException
source - an input stream containing the initial contents of this fileforce - Currently not used. It is recommended to set this to
true for now.encoding - the file encoding of the source input stream.
If null is specified, the default local file
encoding is usedmonitor - a progress monitor, or null if progress
reporting is not desired
OperationFailedException - if failed to create the fileString getFileExtension()
The file extension portion is defined as the string following the last period (".") character in the name. If there is no period in the name, the path has no file extension portion. If the name ends in a period, the file extension portion is the empty string.
IPhysicalFile.setFileExtension(String),
IPhysicalFile.getNameWithoutExtension()void setFileExtension(String value)
value - the new extension to setIPhysicalFile.getFileExtension()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||