org.eclipse.core.internal.watson
Interface IElementInfoFlattener

All Known Implementing Classes:
SaveManager

public interface IElementInfoFlattener

The IElementInfoFlattener interface supports reading and writing element info objects.


Method Summary
 java.lang.Object readElement(org.eclipse.core.runtime.IPath elementPath, java.io.DataInput input)
          Reads an element info from the given input stream.
 void writeElement(org.eclipse.core.runtime.IPath elementPath, java.lang.Object element, java.io.DataOutput output)
          Writes the given element to the output stream.
 

Method Detail

readElement

java.lang.Object readElement(org.eclipse.core.runtime.IPath elementPath,
                             java.io.DataInput input)
                             throws java.io.IOException
Reads an element info from the given input stream.

Parameters:
elementPath - the path of the element to be read
input - the stream from which the element info should be read.
Returns:
the object associated with the given elementPath, which may be null.
Throws:
java.io.IOException

writeElement

void writeElement(org.eclipse.core.runtime.IPath elementPath,
                  java.lang.Object element,
                  java.io.DataOutput output)
                  throws java.io.IOException
Writes the given element to the output stream.

N.B. The bytes written must be sufficient for the purposes of reading the object back in.

Parameters:
elementPath - the element's path in the tree
element - the object associated with the given path, which may be null.
Throws:
java.io.IOException