4 package uk.ac.vamsas.client;
9 * Object for accessing Client and User specific data
10 * in an IClientDocument instance.
13 public interface IClientAppdata {
15 * @return true if Client's non-user specific application data is non-zero length.
17 boolean hasClientAppdata();
19 * @return true if User's Client Application data is non-zero length
21 boolean hasUserAppdata();
24 * @return byte array containing the Client's non-user specific application data
26 byte[] getClientAppdata();
29 * @return byte array containing the Client's user specific application data
31 byte[] getUserAppdata();
33 * set the non-User-specific application data
34 * @param data - the new non-user-specific data
36 void setClientAppdata(byte[] data);
38 * set the User-specific application data
39 * @param data - the new user-specific data
41 void setUserAppdata(byte[] data);
43 * @return non-user specific data output stream
45 AppDataOutputStream getClientOutputStream();
47 * @return non-user specific data input stream
49 AppDataInputStream getClientInputStream();
52 * @return user specific data output stream
54 AppDataOutputStream getUserOutputStream();
57 * @return user specific data input stream
59 AppDataInputStream getUserInputStream();