4 package uk.ac.vamsas.client;
6 import java.io.DataInput;
7 import java.io.DataOutput;
10 * Object for accessing Client and User specific data
11 * in an IClientDocument instance.
14 public interface IClientAppdata {
16 * @return true if Client's non-user specific application data is non-zero length.
18 boolean hasClientAppdata();
20 * @return true if User's Client Application data is non-zero length
22 boolean hasUserAppdata();
25 * @return byte array containing the Client's non-user specific application data
27 byte[] getClientAppdata();
30 * @return byte array containing the Client's user specific application data
32 byte[] getUserAppdata();
34 * set the non-User-specific application data
35 * @param data - the new non-user-specific data
37 void setClientAppdata(byte[] data);
39 * set the User-specific application data
40 * @param data - the new user-specific data
42 void setUserAppdata(byte[] data);
44 * @return non-user specific data output stream
46 DataOutput getClientOutputStream();
48 * @return non-user specific data input stream
50 DataInput getClientInputStream();
53 * @return user specific data output stream
55 DataOutput getUserOutputStream();
58 * @return user specific data input stream
60 DataInput getUserInputStream();