X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FUniprotSequence.java;h=4566da7824eb61ff68c375f2eee3111a74a9c715;hb=a8f483d04205bb8273ee311c12968b7e86d205fa;hp=96fe38ede6635c1cbf80567d316e929ee5a3e749;hpb=daeacba9a61069114333b550a987242d8e47e7f7;p=jalview.git diff --git a/src/jalview/datamodel/UniprotSequence.java b/src/jalview/datamodel/UniprotSequence.java index 96fe38e..4566da7 100755 --- a/src/jalview/datamodel/UniprotSequence.java +++ b/src/jalview/datamodel/UniprotSequence.java @@ -1,42 +1,46 @@ -/* - * Jalview - A Sequence Alignment Editor and Viewer - * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - */ -package jalview.datamodel; - -public class UniprotSequence -{ - /** - * internal content storage - */ - private java.lang.String _content = ""; - - public void setContent(String seq) - { - StringBuffer sb = new StringBuffer(); - for(int i=0; i. + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ +package jalview.datamodel; + +public class UniprotSequence +{ + /** + * internal content storage + */ + private java.lang.String _content = ""; + + public void setContent(String seq) + { + StringBuffer sb = new StringBuffer(); + for (int i = 0; i < seq.length(); i++) + { + if (seq.charAt(i) != ' ') + { + sb.append(seq.charAt(i)); + } + } + _content = sb.toString(); + } + + public String getContent() + { + return _content; + } + +}