|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.core.sharedobject.AbstractSharedObject org.eclipse.ecf.provider.fileshare.BaseFileShareRetriever
public class BaseFileShareRetriever
File share retriever implementation
Field Summary | |
---|---|
protected static java.lang.String |
CANCEL_METHOD
|
protected static java.lang.String |
RETRIEVE_METHOD
|
Constructor Summary | |
---|---|
BaseFileShareRetriever(ID remoteTargetFileID,
java.io.File localTarget,
IFileShareListener listener)
|
Method Summary | |
---|---|
void |
cancel()
Cancel the file transfer |
protected void |
cleanUp()
|
protected void |
closeStreams()
|
protected void |
doCancel()
|
protected void |
doRetrieve()
|
protected void |
fireRetrieveComplete()
|
protected void |
fireRetrieveData(byte[] bytesReceived)
|
protected void |
fireRetrieveStart()
|
java.lang.Object |
getAdapter(java.lang.Class clazz)
|
protected java.io.File |
getUniqueLocalFile()
|
protected boolean |
handleSharedObjectMsg(SharedObjectMsg msg)
SharedObjectMsg handler method. |
protected void |
initialize()
Initialize this shared object. |
void |
remove()
|
void |
start()
Start the file transfer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String RETRIEVE_METHOD
protected static final java.lang.String CANCEL_METHOD
Constructor Detail |
---|
public BaseFileShareRetriever(ID remoteTargetFileID, java.io.File localTarget, IFileShareListener listener)
Method Detail |
---|
protected void initialize() throws SharedObjectInitException
AbstractSharedObject
initialize
in class AbstractSharedObject
SharedObjectInitException
- if initialization should throwprotected boolean handleSharedObjectMsg(SharedObjectMsg msg)
AbstractSharedObject
AbstractSharedObject.handleSharedObjectMsgEvent(ISharedObjectMessageEvent)
when a
SharedObjectMsg is received either from a local source or a remote
source. This default implementation simply returns false so that other
processing of of the given msg can occur. Subclasses should override this
behavior to define custom logic for handling SharedObjectMsgs.
handleSharedObjectMsg
in class AbstractSharedObject
msg
- the SharedObjectMsg received
protected void fireRetrieveComplete()
protected void fireRetrieveData(byte[] bytesReceived) throws java.io.IOException
java.io.IOException
protected java.io.File getUniqueLocalFile()
protected void cleanUp()
protected void fireRetrieveStart()
protected void doCancel()
protected void doRetrieve()
protected void closeStreams()
public void start()
IFileShare
start
in interface IFileShare
public void cancel()
IFileShare
cancel
in interface IFileShare
public java.lang.Object getAdapter(java.lang.Class clazz)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class AbstractSharedObject
public void remove()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |