@@ -133,31 +133,32 @@ load your own, custom data structures. For this you will require to
133133implement the [ MMcifConsumer
134134interface] ( http://www.biojava.org/docs/api/org/biojava/bio/structure/io/mmcif/MMcifConsumer.html )
135135
136- ``` java @since 1.7
136+ ``` java
137+ @since 1.7
137138
138- ` public static void main(String [] args){`
139+ public static void main(String [] args){
139140
140- ` String fileName = args[0 ];`
141- ` `
142- ` InputStream inStream = new FileInputStream (fileName);`
143- ` `
144- ` MMcifParser parser = new SimpleMMcifParser ();`
141+ String fileName = args[0 ];
142+
143+ InputStream inStream = new FileInputStream (fileName);
144+
145+ MMcifParser parser = new SimpleMMcifParser ();
145146
146- ` SimpleMMcifConsumer consumer = new SimpleMMcifConsumer ();`
147+ SimpleMMcifConsumer consumer = new SimpleMMcifConsumer ();
147148
148- ` // The Consumer builds up the BioJava - structure object.`
149- ` // you could also hook in your own and build up you own data model. `
150- ` parser. addMMcifConsumer(consumer);`
149+ // The Consumer builds up the BioJava - structure object.
150+ // you could also hook in your own and build up you own data model.
151+ parser. addMMcifConsumer(consumer);
151152
152- ` try {`
153- ` parser. parse(new BufferedReader (new InputStreamReader (inStream)));`
154- ` } catch (IOException e){`
155- ` e. printStackTrace();`
156- ` }`
153+ try {
154+ parser. parse(new BufferedReader (new InputStreamReader (inStream)));
155+ } catch (IOException e){
156+ e. printStackTrace();
157+ }
157158
158- ` // now get the protein structure.`
159- ` Structure cifStructure = consumer. getStructure();`
160- ` `
159+ // now get the protein structure.
160+ Structure cifStructure = consumer. getStructure();
161+
161162
162163}
163164
0 commit comments