X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fuk%2Fac%2Fvamsas%2Fclient%2FIClientAppdata.java;h=20999954a03821263a15ff9b802028e07c53f456;hb=844ccad5a3fcbedec17b2af66d460f31abc7cff1;hp=c718d2269e6ff9635d36875ebb4ae9d837c5b79f;hpb=ea8b10ee787a2b1e2b35f2acb4dccaf12fd2a6fd;p=vamsas.git diff --git a/src/uk/ac/vamsas/client/IClientAppdata.java b/src/uk/ac/vamsas/client/IClientAppdata.java index c718d22..2099995 100644 --- a/src/uk/ac/vamsas/client/IClientAppdata.java +++ b/src/uk/ac/vamsas/client/IClientAppdata.java @@ -1,61 +1,91 @@ -/** - * - */ -package uk.ac.vamsas.client; - -import java.io.DataInput; -import java.io.DataOutput; - -/** - * Object for accessing Client and User specific data - * in an IClientDocument instance. - * - */ -public interface IClientAppdata { - /** - * @return true if Client's non-user specific application data is non-zero length. - */ - boolean hasClientAppdata(); - /** - * @return true if User's Client Application data is non-zero length - */ - boolean hasUserAppdata(); - /** - * - * @return byte array containing the Client's non-user specific application data - */ - byte[] getClientAppdata(); - /** - * - * @return byte array containing the Client's user specific application data - */ - byte[] getUserAppdata(); - /** - * set the non-User-specific application data - * @param data - the new non-user-specific data - */ - void setClientAppdata(byte[] data); - /** - * set the User-specific application data - * @param data - the new user-specific data - */ - void setUserAppdata(byte[] data); - /** - * @return non-user specific data output stream - */ - DataOutput getClientOutputStream(); - /** - * @return non-user specific data input stream - */ - DataInput getClientInputStream(); - /** - * - * @return user specific data output stream - */ - DataOutput getUserOutputStream(); - /** - * - * @return user specific data input stream - */ - DataInput getUserInputStream(); -} +/* + * This file is part of the Vamsas Client version 0.1. + * Copyright 2009 by Jim Procter, Iain Milne, Pierre Marguerite, + * Andrew Waterhouse and Dominik Lindner. + * + * Earlier versions have also been incorporated into Jalview version 2.4 + * since 2008, and TOPALi version 2 since 2007. + * + * The Vamsas Client is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * The Vamsas Client is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with the Vamsas Client. If not, see . + */ +package uk.ac.vamsas.client; + +/** + * Object for accessing Client and User specific data in an IClientDocument + * instance. + * + */ +public interface IClientAppdata { + /** + * @return true if Client's non-user specific application data is non-zero + * length. + */ + boolean hasClientAppdata(); + + /** + * @return true if User's Client Application data is non-zero length + */ + boolean hasUserAppdata(); + + /** + * + * @return byte array containing the Client's non-user specific application + * data + */ + byte[] getClientAppdata(); + + /** + * + * @return byte array containing the Client's user specific application data + */ + byte[] getUserAppdata(); + + /** + * set the non-User-specific application data + * + * @param data + * - the new non-user-specific data + */ + void setClientAppdata(byte[] data); + + /** + * set the User-specific application data + * + * @param data + * - the new user-specific data + */ + void setUserAppdata(byte[] data); + + /** + * @return non-user specific data output stream + */ + AppDataOutputStream getClientOutputStream(); + + /** + * @return non-user specific data input stream + */ + AppDataInputStream getClientInputStream(); + + /** + * + * @return user specific data output stream + */ + AppDataOutputStream getUserOutputStream(); + + /** + * + * @return user specific data input stream + */ + AppDataInputStream getUserInputStream(); +}