Return-Path: X-Original-To: apmail-incubator-any23-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-any23-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7C3C8C517 for ; Sat, 2 Jun 2012 10:16:25 +0000 (UTC) Received: (qmail 69408 invoked by uid 500); 2 Jun 2012 10:16:24 -0000 Delivered-To: apmail-incubator-any23-dev-archive@incubator.apache.org Received: (qmail 69347 invoked by uid 500); 2 Jun 2012 10:16:24 -0000 Mailing-List: contact any23-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: any23-dev@incubator.apache.org Delivered-To: mailing list any23-dev@incubator.apache.org Received: (qmail 69325 invoked by uid 99); 2 Jun 2012 10:16:23 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Jun 2012 10:16:23 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 05CBF14000C for ; Sat, 2 Jun 2012 10:16:22 +0000 (UTC) Date: Sat, 2 Jun 2012 10:16:22 +0000 (UTC) From: "Michele Mostarda (JIRA)" To: any23-dev@incubator.apache.org Message-ID: <1475615848.29941.1338632183026.JavaMail.jiratomcat@issues-vm> In-Reply-To: <2047783942.60176.1336958627920.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (ANY23-89) Remove BufferRDFHandler from RDFUtils MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ANY23-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michele Mostarda resolved ANY23-89. ----------------------------------- Resolution: Fixed Fixed @ r1345476. > Remove BufferRDFHandler from RDFUtils > ------------------------------------- > > Key: ANY23-89 > URL: https://issues.apache.org/jira/browse/ANY23-89 > Project: Apache Any23 > Issue Type: Improvement > Components: core > Reporter: Peter Ansell > > Sesame provides an implementation of RDFHandler, similar to BufferRDFHandler, in sesame-rio-api.jar. The only difference from StatementCollector to BufferRDFHandler is that StatementCollector also collects namespaces, which in most cases should not incur too much of a memory or performance cost. BufferRDFHandler is a private inner class so there are no repercussions to the API or other classes. > It is a simple switch out with the following two lines affected after removing BufferRDFHandler. > public static Statement[] parseRDF(RDFFormat p, InputStream is, String baseURI) > throws RDFHandlerException, IOException, RDFParseException { > - final BufferRDFHandler handler = new BufferRDFHandler(); > + final StatementCollector handler = new StatementCollector(); > parser.setVerifyData(true); > parser.setStopAtFirstError(true); > parser.setPreserveBNodeIDs(true); > parser.setRDFHandler(handler); > parser.parse(is, baseURI); > - return handler.statements.toArray( new Statement[handler.statements.size()] ); > + return handler.getStatements().toArray( new Statement[handler.getStatements().size()] ); > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira