|
From: Riccardo P. <ric...@gm...> - 2013-08-12 11:16:54
|
Interesting solution to manage big files 2GB is my target.
I have opened the XMLMemMappedBuffer I'll do a patch to create it from
InputStream.
---Riccardo Prandini
Please consider the environment before printing this email
2013/8/12 Preeti Subramanian <sp...@se...>
> Hi Riccardo,
>
> I suggest you can use VTD extended. After that you can start your
> application using -Xmx option.
> Code snippet:
>
> XMLMemMappedBuffer xb = new XMLMemMappedBuffer();
> VTDGenHuge vg = new VTDGenHuge();
> xb.readFile("somefile.xml");
> vg.setDoc(xb);
> vg.parse(true);
> VTDNavHuge vn = vg.getNav();
>
> Came across this in VTD-XML FAQ...
>
> *"* What are the maximum file size supported by VTD-XML?
>
> For VTD-XML's regular version, it depends on the name space enablement.
>
> When namespace is not enabled, the maximum file size is 2 GB.
>
> When namespace is enabled, the maximum file size is 1 GB.
>
> With VTD-XML's extended edition, the supported maximum file size is 256
> GB, regardless of namespace support."*
>
> Regards
> Preeti
> SecPod Technologies
> (www.secpod.com)
> mail: sp...@se...
>
>
>
> On Monday 12 August 2013 03:32 PM, Riccardo Prandini wrote:
>
> Hi,
>
> I'm using for the first time vtd, for my project, i have to deal vith
> large "file".
> I recive the file content as InputStream via other class, so i'm
> interested in two thing.
>
> - An efficent way to use the InputStream
> In the doc is suggested to dump to byteArray and use setDoc. But using
> this method I have 2 times the file in memory 1 byteArray and one VTD o am
> I wrong?.
>
> - If is planned the validation via xsd.
>
>
>
>
> ---Riccardo Prandini
> Please consider the environment before printing this email
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Vtd-xml-users mailing lis...@li...://lists.sourceforge.net/lists/listinfo/vtd-xml-users
>
>
>
|