org.eclipse.core.internal.resources
Class ModelObjectWriter

java.lang.Object
  extended by org.eclipse.core.internal.resources.ModelObjectWriter
All Implemented Interfaces:
IModelObjectConstants

public class ModelObjectWriter
extends java.lang.Object
implements IModelObjectConstants


Field Summary
 
Fields inherited from interface org.eclipse.core.internal.resources.IModelObjectConstants
ARGUMENTS, AUTOBUILD, BUILD_COMMAND, BUILD_ORDER, BUILD_SPEC, BUILD_TRIGGERS, COMMENT, DICTIONARY, FILE_STATE_LONGEVITY, KEY, LINK, LINKED_RESOURCES, LOCATION, LOCATION_URI, MAX_FILE_STATE_SIZE, MAX_FILE_STATES, NAME, NATURE, NATURES, PROJECT, PROJECT_DESCRIPTION, PROJECTS, SNAPSHOT_INTERVAL, TRIGGER_AUTO, TRIGGER_CLEAN, TRIGGER_FULL, TRIGGER_INCREMENTAL, TYPE, VALUE, WORKSPACE_DESCRIPTION
 
Constructor Summary
ModelObjectWriter()
           
 
Method Summary
 void write(java.lang.Object object, org.eclipse.core.runtime.IPath location, org.eclipse.core.runtime.IPath tempLocation)
          The parameter tempLocation is a location to place our temp file (copy of the target one) to be used in case we could not successfully write the new file.
 void write(java.lang.Object object, java.io.OutputStream output)
          The OutputStream is closed in this method.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelObjectWriter

public ModelObjectWriter()
Method Detail

write

public void write(java.lang.Object object,
                  org.eclipse.core.runtime.IPath location,
                  org.eclipse.core.runtime.IPath tempLocation)
           throws java.io.IOException
The parameter tempLocation is a location to place our temp file (copy of the target one) to be used in case we could not successfully write the new file.

Throws:
java.io.IOException

write

public void write(java.lang.Object object,
                  java.io.OutputStream output)
           throws java.io.IOException
The OutputStream is closed in this method.

Throws:
java.io.IOException