梦想,永远不放弃!

ContentHandler is not Thread Safe or Reentrant

上一篇 / 下一篇  2008-03-31 13:59:16 / 个人分类:XML

ContendHandler is not thread safe and reentrant.

Whereas it's straightforward to design SAX program that operates multiple documents in series, it is almost impossible to design one to operate mulitple documents in parallel.

[1] If you need to perform. XML parsing in multiple documents, simultaneous threads, give each thread its own XMLReader and ContentHandler objects.

[2] If you want to parse another document inside one o the ContentHandler methods, you need to create a new XMLReader and ContentHandler objects to parse it.

[3] Don't try to use the existing XMLReader and ContentHandler object before they have finished with the current document.


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-07-09  
  12345
6789101112
13141516171819
20212223242526
2728293031  

数据统计

  • 访问量: 95
  • 日志数: 12
  • 文件数: 2
  • 书签数: 1
  • 建立时间: 2008-03-24
  • 更新时间: 2008-04-12

RSS订阅

Open Toolbar