|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.team.core.sync.RemoteContentsCacheEntry
This class provides the implementation for the ICacheEntry
| Field Summary | |
static int |
DISPOSED
|
static int |
READY
|
static int |
UNINITIALIZED
|
| Constructor Summary | |
RemoteContentsCacheEntry(RemoteContentsCache cache,
String id,
String filePath)
|
|
| Method Summary | |
void |
dispose()
|
InputStream |
getContents()
|
protected File |
getFile()
|
String |
getId()
|
long |
getLastAccessTimeStamp()
|
long |
getSize()
|
int |
getState()
|
byte[] |
getSyncBytes()
|
protected void |
registerHit()
Registers a hit on this cache entry. |
void |
setContents(InputStream stream,
IProgressMonitor monitor)
Set the contents of for this cache entry. |
void |
setSyncBytes(byte[] bytes)
Set the sync bytes associated with the cached remote contents. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int UNINITIALIZED
public static final int READY
public static final int DISPOSED
| Constructor Detail |
public RemoteContentsCacheEntry(RemoteContentsCache cache,
String id,
String filePath)
| Method Detail |
public InputStream getContents()
throws TeamException
TeamExceptionprotected File getFile()
public void setContents(InputStream stream,
IProgressMonitor monitor)
throws TeamException
stream - an InputStream that provides the contents to be cachedmonitor - a progress monitor
TeamException - if the entry is DISPOSED or an I/O error occurrespublic byte[] getSyncBytes()
public void setSyncBytes(byte[] bytes)
bytes - public int getState()
public long getSize()
public long getLastAccessTimeStamp()
protected void registerHit()
public void dispose()
public String getId()
|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||