|
|||||||||||
| 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 accessing| Method Detail |
public byte[] getClientAppdata()
getClientAppdata in interface IClientAppdatapublic AppDataInputStream getClientInputStream()
getClientInputStream in interface IClientAppdatapublic byte[] getUserAppdata()
getUserAppdata in interface IClientAppdatapublic 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.IOExceptionpublic AppDataOutputStream getClientOutputStream()
getClientOutputStream in interface IClientAppdatapublic AppDataOutputStream getUserOutputStream()
getUserOutputStream in interface IClientAppdatapublic boolean hasClientAppdata()
hasClientAppdata in interface IClientAppdatapublic boolean hasUserAppdata()
hasUserAppdata in interface IClientAppdatapublic void setClientAppdata(byte[] data)
IClientAppdata
setClientAppdata in interface IClientAppdatadata - - the new non-user-specific datapublic void setUserAppdata(byte[] data)
IClientAppdata
setUserAppdata in interface IClientAppdatadata - - the new user-specific data
protected void closeForWriting()
throws java.io.IOException
java.io.IOExceptionprotected 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 | ||||||||||