org.openide.text
Interface CloneableEditorSupport.Env

All Superinterfaces:
CloneableOpenSupport.Env, Serializable
All Known Implementing Classes:
DataEditorSupport.Env
Enclosing class:
CloneableEditorSupport

public static interface CloneableEditorSupport.Env
extends CloneableOpenSupport.Env

Interface for providing data for the support and also locking the source of data.


Field Summary
static String PROP_TIME
          property that is fired when time of the data is changed
 
Fields inherited from interface org.openide.windows.CloneableOpenSupport.Env
PROP_MODIFIED, PROP_VALID
 
Method Summary
 String getMimeType()
          Mime type of the document.
 Date getTime()
          The time when the data has been modified
 InputStream inputStream()
          Obtains the input stream.
 OutputStream outputStream()
          Obtains the output stream.
 
Methods inherited from interface org.openide.windows.CloneableOpenSupport.Env
addPropertyChangeListener, addVetoableChangeListener, findCloneableOpenSupport, isModified, isValid, markModified, removePropertyChangeListener, removeVetoableChangeListener, unmarkModified
 

Field Detail

PROP_TIME

public static final String PROP_TIME
property that is fired when time of the data is changed
Method Detail

inputStream

public InputStream inputStream()
                        throws IOException
Obtains the input stream.
Throws:
IOException - if an I/O error occures

outputStream

public OutputStream outputStream()
                          throws IOException
Obtains the output stream.
Throws:
IOException - if an I/O error occures

getTime

public Date getTime()
The time when the data has been modified

getMimeType

public String getMimeType()
Mime type of the document.
Returns:
the mime type to use for the document


Built on December 12 2001.  |  Portions Copyright 1997-2001 Sun Microsystems, Inc. All rights reserved.