org.eclipse.core.internal.resources
Class SyncInfoWriter

java.lang.Object
  extended by org.eclipse.core.internal.resources.SyncInfoWriter

public class SyncInfoWriter
extends java.lang.Object


Field Summary
static byte INDEX
           
static byte QNAME
           
static int SYNCINFO_SAVE_VERSION
           
static int SYNCINFO_SNAP_VERSION
           
 
Constructor Summary
SyncInfoWriter(Workspace workspace, Synchronizer synchronizer)
           
 
Method Summary
 void savePartners(java.io.DataOutputStream output)
           
 void saveSyncInfo(ResourceInfo info, IPathRequestor requestor, java.io.DataOutputStream output, java.util.List writtenPartners)
          SAVE_FILE -> VERSION_ID RESOURCE+ VERSION_ID -> int RESOURCE -> RESOURCE_PATH SIZE SYNCINFO* RESOURCE_PATH -> String SIZE -> int SYNCINFO -> TYPE BYTES TYPE -> INDEX | QNAME INDEX -> byte int QNAME -> byte String BYTES -> byte[]
 void snapSyncInfo(ResourceInfo info, IPathRequestor requestor, java.io.DataOutputStream output)
          SNAP_FILE -> [VERSION_ID RESOURCE]* VERSION_ID -> int RESOURCE -> RESOURCE_PATH SIZE SYNCINFO* RESOURCE_PATH -> String SIZE -> int SYNCINFO -> QNAME BYTES QNAME -> String String BYTES -> byte[]
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYNCINFO_SAVE_VERSION

public static final int SYNCINFO_SAVE_VERSION
See Also:
Constant Field Values

SYNCINFO_SNAP_VERSION

public static final int SYNCINFO_SNAP_VERSION
See Also:
Constant Field Values

INDEX

public static final byte INDEX
See Also:
Constant Field Values

QNAME

public static final byte QNAME
See Also:
Constant Field Values
Constructor Detail

SyncInfoWriter

public SyncInfoWriter(Workspace workspace,
                      Synchronizer synchronizer)
Method Detail

savePartners

public void savePartners(java.io.DataOutputStream output)
                  throws java.io.IOException
Throws:
java.io.IOException

saveSyncInfo

public void saveSyncInfo(ResourceInfo info,
                         IPathRequestor requestor,
                         java.io.DataOutputStream output,
                         java.util.List writtenPartners)
                  throws java.io.IOException
SAVE_FILE -> VERSION_ID RESOURCE+ VERSION_ID -> int RESOURCE -> RESOURCE_PATH SIZE SYNCINFO* RESOURCE_PATH -> String SIZE -> int SYNCINFO -> TYPE BYTES TYPE -> INDEX | QNAME INDEX -> byte int QNAME -> byte String BYTES -> byte[]

Throws:
java.io.IOException

snapSyncInfo

public void snapSyncInfo(ResourceInfo info,
                         IPathRequestor requestor,
                         java.io.DataOutputStream output)
                  throws java.io.IOException
SNAP_FILE -> [VERSION_ID RESOURCE]* VERSION_ID -> int RESOURCE -> RESOURCE_PATH SIZE SYNCINFO* RESOURCE_PATH -> String SIZE -> int SYNCINFO -> QNAME BYTES QNAME -> String String BYTES -> byte[]

Throws:
java.io.IOException