public interface ISavableResource
Example: A z/OS member which is downloaded in the Eclipse workspace and opened in a text editor. While making changes and saving the editor would only save the contents to the workspace copy, an additional "save" action is required to upload the changes back on the mainframe. Copyright (C) Micro Focus 2010
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
void |
save(java.io.InputStream pIs)
Overwrites the resource's content with the given
InputStream. |
void |
unlock(org.eclipse.core.runtime.IProgressMonitor pMon)
Resets the exclusive use of the resource if necessary.
|
java.lang.String getName()
void save(java.io.InputStream pIs) throws java.io.IOException
InputStream.pIs - the new content of the resourcejava.io.IOException - if a I/O exception of any kind occurs during the save actionvoid unlock(org.eclipse.core.runtime.IProgressMonitor pMon)
throws java.io.IOException
pMon - progress monitorjava.io.IOException - if unlocking the resource failsCopyright © 2015 Micro Focus GmbH. All rights reserved.