|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.vamsas.client.simpleclient.SimpleClientAppdata
Field Summary | |
protected boolean |
accessedDocument
has the session's document been accessed to get the AppData entrys? |
protected ApplicationData |
appsGlobal
set by extractAppData |
protected User |
usersData
set by extractAppData |
Constructor Summary | |
protected |
SimpleClientAppdata(ClientDocument clientdoc)
state flags - accessed ClientAppdata - accessed UserAppdata => inputStream from embedded xml or jar entry of backup has been created - set ClientAppdata - set UserAppdata => an output stream has been created and written to - or a data chunk has been written. |
Method Summary | |
protected void |
closeForWriting()
flush and close outstanding output streams. |
protected void |
finalize()
|
byte[] |
getClientAppdata()
|
AppDataInputStream |
getClientInputStream()
|
AppDataOutputStream |
getClientOutputStream()
|
byte[] |
getUserAppdata()
|
AppDataInputStream |
getUserInputStream()
|
AppDataOutputStream |
getUserOutputStream()
|
boolean |
hasClientAppdata()
|
boolean |
hasUserAppdata()
|
protected boolean |
isModified()
|
void |
setClientAppdata(byte[] data)
set the non-User-specific application data |
void |
setUserAppdata(byte[] data)
set the User-specific application data |
protected void |
updateAnAppdataEntry(VamsasArchive vdoc,
AppData appd,
SessionFile apdjar)
copy data from the appData jar file to an appropriately referenced jar or Data entry for the given ApplicationData Assumes the JarFile is properly closed. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean accessedDocument
protected ApplicationData appsGlobal
protected User usersData
Constructor Detail |
protected SimpleClientAppdata(ClientDocument clientdoc)
clientdoc
- The ClientDocument instance that this IClientAppData is accessingMethod Detail |
public byte[] getClientAppdata()
getClientAppdata
in interface IClientAppdata
public AppDataInputStream getClientInputStream()
getClientInputStream
in interface IClientAppdata
public byte[] getUserAppdata()
getUserAppdata
in interface IClientAppdata
public AppDataInputStream getUserInputStream()
getUserInputStream
in interface IClientAppdata
protected void updateAnAppdataEntry(VamsasArchive vdoc, AppData appd, SessionFile apdjar) throws java.io.IOException
vdoc
- session Document handlerappd
- the AppData whose block is being updatedapdjar
- the new data in a Jar written by this class
java.io.IOException
public AppDataOutputStream getClientOutputStream()
getClientOutputStream
in interface IClientAppdata
public AppDataOutputStream getUserOutputStream()
getUserOutputStream
in interface IClientAppdata
public boolean hasClientAppdata()
hasClientAppdata
in interface IClientAppdata
public boolean hasUserAppdata()
hasUserAppdata
in interface IClientAppdata
public void setClientAppdata(byte[] data)
IClientAppdata
setClientAppdata
in interface IClientAppdata
data
- - the new non-user-specific datapublic void setUserAppdata(byte[] data)
IClientAppdata
setUserAppdata
in interface IClientAppdata
data
- - the new user-specific dataprotected void closeForWriting() throws java.io.IOException
java.io.IOException
protected boolean isModified()
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |