@Test public final void testReadWriteL2() throws IOException { BioPAXIOHandler io = new SimpleIOHandler(); io.fixReusedPEPs(false); Model model = getL2Model(io); assertNotNull(model); assertFalse(model.getObjects().isEmpty()); System.out.println("Model has " + model.getObjects().size() + " objects)"); FileOutputStream out = new FileOutputStream( getClass().getResource("").getFile() + File.separator + "simpleReadWrite.owl" ); io.convertToOWL(model, out); }
public void convertToOWL(Model model, OutputStream outputStream) { initializeExporter(model); try { Writer out = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8")); writeObjects(out, model); out.close(); } catch (IOException e) { throw new BioPaxIOException("Cannot convert to OWL!", e); } }
SimpleIOHandler extends BioPAXIOHandlerAdapter { public void convertToOWL(Model model, OutputStream outputStream) { initializeExporter(model); try { Writer out = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8")); writeObjects(out, model); out.close(); } catch (IOException e) { throw new BioPaxIOException("Cannot convert to OWL!", e); } } }
SimpleIOHandler extends BioPAXIOHandlerAdapter { public void convertToOWL(Model model, OutputStream outputStream) { initializeExporter(model); try { Writer out = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8")); writeObjects(out, model); out.close(); } catch (IOException e) { throw new BioPaxIOException("Cannot convert to OWL!", e); } } SimpleIOHandler();  SimpleIOHandler(BioPAXLevel level);  SimpleIOHandler(BioPAXFactory factory, BioPAXLevel level); }
SimpleIOHandler extends BioPAXIOHandlerAdapter { public void convertToOWL(Model model, OutputStream outputStream) { initializeExporter(model); try { Writer out = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8")); writeObjects(out, model); out.close(); } catch (IOException e) { throw new BioPaxIOException("Cannot convert to OWL!", e); } } SimpleIOHandler();  SimpleIOHandler(BioPAXLevel level);  SimpleIOHandler(BioPAXFactory factory, BioPAXLevel level); void mergeDuplicates(boolean mergeDuplicates); void checkRestrictions(boolean checkRestrictions); String getXmlStreamInfo(); String getId(); void convertToOWL(Model model, OutputStream outputStream); void writeObject(Writer out, BioPAXElement bean); void absoluteUris(boolean absoluteUris); boolean isAbsoluteUris(); void normalizeNameSpaces(boolean normalizeNameSpaces); boolean isNormalizeNameSpaces(); boolean isMergeDuplicates(); static String convertToOwl(Model model); }
SimpleIOHandler extends BioPAXIOHandlerAdapter { public void convertToOWL(Model model, OutputStream outputStream) { initializeExporter(model); try { Writer out = new BufferedWriter(new OutputStreamWriter(outputStream, "UTF-8")); writeObjects(out, model); out.close(); } catch (IOException e) { throw new BioPaxIOException("Cannot convert to OWL!", e); } } SimpleIOHandler();  SimpleIOHandler(BioPAXLevel level);  SimpleIOHandler(BioPAXFactory factory, BioPAXLevel level); void mergeDuplicates(boolean mergeDuplicates); void checkRestrictions(boolean checkRestrictions); String getXmlStreamInfo(); String getId(); void convertToOWL(Model model, OutputStream outputStream); void writeObject(Writer out, BioPAXElement bean); void absoluteUris(boolean absoluteUris); boolean isAbsoluteUris(); void normalizeNameSpaces(boolean normalizeNameSpaces); boolean isNormalizeNameSpaces(); boolean isMergeDuplicates(); static String convertToOwl(Model model);  }