X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2FMCview%2FPDBfile.java;h=caa2501e798d4720f47f1ff99ed556afb208c0be;hb=cb5d856b1304448cae13a333cbd9017f81520d90;hp=30f7e425ec55fee0b28e03675699ba12439be1ca;hpb=9bfd2651e3fd3dbadf67f5831f56fb86b4626a46;p=jalview.git diff --git a/src/MCview/PDBfile.java b/src/MCview/PDBfile.java index 30f7e42..caa2501 100755 --- a/src/MCview/PDBfile.java +++ b/src/MCview/PDBfile.java @@ -1,19 +1,20 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6) - * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1) + * Copyright (C) 2014 The Jalview Authors * * This file is part of Jalview. * * Jalview 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 3 of the License, or (at your option) any later version. - * + * * Jalview 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 Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. */ package MCview; @@ -56,18 +57,18 @@ public class PDBfile extends jalview.io.AlignFile // TODO set the filename sensibly - try using data source name. id = safeName(getDataName()); - chains = new Vector(); + chains = new Vector(); - PDBChain tmpchain; - String line=null; - boolean modelFlag = false; - boolean terFlag = false; - String lastID = ""; + PDBChain tmpchain; + String line = null; + boolean modelFlag = false; + boolean terFlag = false; + String lastID = ""; - int index = 0; - String atomnam = null; - try - { + int index = 0; + String atomnam = null; + try + { while ((line = nextLine()) != null) { if (line.indexOf("HEADER") == 0) @@ -184,10 +185,10 @@ public class PDBfile extends jalview.io.AlignFile { System.out.println("OUT OF MEMORY LOADING PDB FILE"); throw new IOException("Out of memory loading PDB File"); - } - catch (NumberFormatException ex) + } catch (NumberFormatException ex) { - if (line!=null) { + if (line != null) + { System.err.println("Couldn't read number from line:"); System.err.println(line); }