com.funambol.syncml.client
Class TwoPhasesFileSyncSource.EmptyFileSyncItem

java.lang.Object
  extended by com.funambol.syncml.spds.SyncItem
      extended by com.funambol.syncml.client.TwoPhasesFileSyncSource.EmptyFileSyncItem
Enclosing class:
TwoPhasesFileSyncSource

protected class TwoPhasesFileSyncSource.EmptyFileSyncItem
extends SyncItem


Field Summary
 
Fields inherited from class com.funambol.syncml.spds.SyncItem
STATE_DELETED, STATE_NEW, STATE_UNDEF, STATE_UPDATED
 
Constructor Summary
TwoPhasesFileSyncSource.EmptyFileSyncItem(java.lang.String fileName, java.lang.String key)
           
TwoPhasesFileSyncSource.EmptyFileSyncItem(java.lang.String fileName, java.lang.String key, java.lang.String type, char state, java.lang.String parent)
           
 
Method Summary
 java.lang.String getFileName()
           
 java.io.InputStream getInputStream()
          Creates a new input stream to read from.
 
Methods inherited from class com.funambol.syncml.spds.SyncItem
getClientRepresentation, getContent, getKey, getObjectSize, getOutputStream, getParent, getSourceParent, getState, getType, hasContent, setClientRepresentation, setContent, setKey, setObjectSize, setParent, setSourceParent, setState, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoPhasesFileSyncSource.EmptyFileSyncItem

public TwoPhasesFileSyncSource.EmptyFileSyncItem(java.lang.String fileName,
                                                 java.lang.String key)
                                          throws java.io.IOException
Throws:
java.io.IOException

TwoPhasesFileSyncSource.EmptyFileSyncItem

public TwoPhasesFileSyncSource.EmptyFileSyncItem(java.lang.String fileName,
                                                 java.lang.String key,
                                                 java.lang.String type,
                                                 char state,
                                                 java.lang.String parent)
                                          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Creates a new input stream to read from. If the source is configured to handle File Data Object, then the stream returns the XML description of the file. @see FileObjectInputStream for more details.

Overrides:
getInputStream in class SyncItem
Returns:
an InputStream if the item contains at least one byte, null otherwise
Throws:
java.io.IOException

getFileName

public java.lang.String getFileName()


Copyright © 2001-2009 Funambol.