com.funambol.syncml.client
Class FileSyncSource.FileSyncItem
java.lang.Object
com.funambol.syncml.spds.SyncItem
com.funambol.syncml.client.FileSyncSource.FileSyncItem
- Enclosing class:
- FileSyncSource
protected class FileSyncSource.FileSyncItem
- extends SyncItem
Method Summary |
java.lang.String |
getFileName()
|
java.io.InputStream |
getInputStream()
Creates a new input stream to read from. |
java.io.OutputStream |
getOutputStream()
Creates a new output stream to write to. |
Methods inherited from class com.funambol.syncml.spds.SyncItem |
getClientRepresentation, getContent, getKey, getObjectSize, 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 |
FileSyncSource.FileSyncItem
public FileSyncSource.FileSyncItem(java.lang.String fileName,
java.lang.String key)
throws java.io.IOException
- Throws:
java.io.IOException
FileSyncSource.FileSyncItem
public FileSyncSource.FileSyncItem(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
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException
- Creates a new output stream to write to. If the item type is
FileDataObject, then the output stream takes care of parsing the XML
part of the object and it fills a FileObject that can be retrieved
later. @see FileObjectOutputStream for more details
Note that the output stream is unique, so that is can be reused
across different syncml messages.
- Overrides:
getOutputStream
in class SyncItem
- Throws:
java.io.IOException
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.