public void convert ( InputStream inputStream , OutputStream outputStream , boolean forceInteractionToComplex ) throws IOException , PsimiXmlReaderException { // check args if ( inputStream == null || outputStream == null ) { throw new IllegalArgumentException ( "convert(): " + "one or more null arguments." ) ; } // unmarshall the data, close the stream PsimiXmlReader reader = new PsimiXmlReader ( ) ; EntrySet entrySet = reader . read ( inputStream ) ; inputStream . close ( ) ; // convert convert ( entrySet , outputStream , forceInteractionToComplex ) ; }
Converts the PSI - MI inputStream into BioPAX outputStream . Streams will be closed by the converter .