Re: [bdbxml] XMLInputStreams and regular InputStreams and w3c DOM objects.

John Snelson <[email protected]> Mon, 26 Sep 2005 14:42:01 +0100
Newsgroups gmane.comp.db.dbxml.general
Message-ID <[email protected]>
Moe wrote:
> George Feinberg <gmf@...> writes:
>>As of the 2.1.8, it is not possible to implement XmlInputStream in Java.
>>There have been some issues getting the SWIG mechanisms involved working
>>correctly.
>>
>>For now, the only way to make this work in Java is to write your own
>>C++ subclass that uses JNI to delegate to your own Java
>>instance.  SWIG need not be involved -- it's just pure JNI.
> 
> How should one proceed - at the current state of the (Java) API - if putting a
> large amount of data into the database has to be accomplished? You cannot write
> hundreds of megabyte into a string in order to import/export data, now can
> you... Do you know of any efficient approach to solve this problem?

The only way to acheive this presently is to stream the data from a 
file, using XmlManager.createLocalFileInputStream().

John

-- 
John Snelson, Berkeley DB XML Engineer
Sleepycat Software, Inc
http://www.sleepycat.com

Contracted to Sleepycat through Parthenon Computing Ltd
http://blog.parthcomp.com/dbxml


------------------------------------------
To remove yourself from this list, send an
email to [email protected]