|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.uky.rch.ept.data.DataLayerEditorInput
Editor input for data layer resources. In addition to implementing
IDataLayerEditorInput, this class provides the convenience
methods getInputStream(), getOutputStream(), and
getOutputStream(boolean).
| Constructor Summary | |
DataLayerEditorInput(String address)
Create an editor input referring to a data layer resource. |
|
| Method Summary | |
boolean |
equals(Object obj)
|
boolean |
exists()
Determine whether the resource exists in the data layer. |
Object |
getAdapter(Class adapter)
|
String |
getAddress()
Get the data layer address for this editor input. |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor()
Get the image descriptor for the editor input. |
BufferedInputStream |
getInputStream()
Returns an input stream that reads data from the resource pointed to by this editor input. |
String |
getName()
|
BufferedOutputStream |
getOutputStream()
Returns an output stream that writes data to the resource pointed to by this editor input. |
BufferedOutputStream |
getOutputStream(boolean append)
Returns an output stream that writes or appends data to the resource pointed to by this editor input. |
org.eclipse.ui.IPersistableElement |
getPersistable()
|
String |
getToolTipText()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataLayerEditorInput(String address)
throws MalformedAddressException,
IOException
address - the absolute data layer address of a resource.
MalformedAddressException - if the address was not a valid
data layer address.
IOException - if there was an error accessing the resource.| Method Detail |
public String getAddress()
IDataLayerEditorInput
getAddress in interface IDataLayerEditorInputpublic boolean exists()
exists in interface org.eclipse.ui.IEditorInputIEditorInput.exists()public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
getImageDescriptor in interface org.eclipse.ui.IEditorInputpublic String getName()
getName in interface org.eclipse.ui.IEditorInputpublic org.eclipse.ui.IPersistableElement getPersistable()
getPersistable in interface org.eclipse.ui.IEditorInputpublic String getToolTipText()
getToolTipText in interface org.eclipse.ui.IEditorInputpublic Object getAdapter(Class adapter)
getAdapter in interface org.eclipse.core.runtime.IAdaptable
public BufferedInputStream getInputStream()
throws ResourceNotFoundException,
IOException
ResourceNotFoundException - if the resource pointed to by this
editor input does not exist.
IOException - if there was an error accessing the resource.
public BufferedOutputStream getOutputStream(boolean append)
throws ResourceNotFoundException,
IOException
append - if true, the stream will be opened for appending.
ResourceNotFoundException - if the resource pointed to by this
editor input does not exist and cannot be created.
IOException - if there was an error accessing the resource, or
if the resource was not writable.
public BufferedOutputStream getOutputStream()
throws ResourceNotFoundException,
IOException
ResourceNotFoundException - if the resource pointed to by this
editor input does not exist and cannot be created.
IOException - if there was an error accessing the resource, or
if the resource was not writable.public boolean equals(Object obj)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||