Java Doc for ARP.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » rdf » arp » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » Jena 2.5.5 » com.hp.hpl.jena.rdf.arp 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.hp.hpl.jena.rdf.arp.ARP

ARP
public class ARP implements ARPConfig(Code)
Another RDF Parser. To load an RDF file:
  1. Create an ARP.
  2. Set its handlers, by calling the ARP.getHandlers method, and then.
    • Setting the statement handler.
    • Optionally setting the other handlers.
  3. Call a load method.

Xerces is used for parsing the XML. The SAXEvents generated by Xerces are then analysed as RDF by ARP. Errors may occur in either the XML or the RDF part, see ARPHandlers.setErrorHandler for details of how to distinguish between them.

For very large files, ARP does not use any additional memory except when either the ExtendedHandler.discardNodesWithNodeID returns false or when the AResource.setUserData method has been used. In these cases ARP needs to remember the rdf:nodeID usage through the file life time.

See ARP documentation for more information.


author:
   Jeremy Carroll with contributions from Simon Raboczi
author:
   and Andrew Newman



Constructor Summary
public  ARP()
     Creates a new RDF Parser.

Method Summary
public  ARPHandlersgetHandlers()
     The handlers used during parsing.
public  LocatorgetLocator()
     When parsing a file, this returns a Locator giving the position of the last XML event processed by ARP.
public  ARPOptionsgetOptions()
     The options used during parsing.
public  voidload(Reader in, String xmlBase)
     Load RDF/XML from a Reader.
 voidload(InputSource is)
    
public  voidload(InputStream in, String xmlBase)
     Load RDF/XML from an InputStream.
public  voidload(InputStream in)
     Load RDF/XML from an InputStream, leaving relative URIs as relative.
public  voidload(Reader in)
     Load RDF/XML from a Reader, leaving relative URIs as relative.
 voidsetBadStatementHandler(StatementHandler sh)
    
public  voidsetDefaultErrorMode()
    
public  voidsetEmbedding(boolean embed)
    
public  voidsetErrorHandler(ErrorHandler eh)
    
public  intsetErrorMode(int errno, int mode)
    
public  ExtendedHandlersetExtendedHandler(ExtendedHandler eh)
    
public  voidsetHandlersWith(ARPHandlers handlers)
     Copies the handlers from the argument to be used by this instance.
public  voidsetLaxErrorMode()
    
public  NamespaceHandlersetNamespaceHandler(NamespaceHandler nh)
    
public  voidsetOptionsWith(ARPOptions opts)
     Copies the options from the argument to be used by this instance.
public  StatementHandlersetStatementHandler(StatementHandler sh)
    
public  voidsetStrictErrorMode()
    
public  voidsetStrictErrorMode(int nonErrorMode)
    


Constructor Detail
ARP
public ARP()(Code)
Creates a new RDF Parser. Can parse one file at a time.




Method Detail
getHandlers
public ARPHandlers getHandlers()(Code)
The handlers used during parsing. The handlers can be changed by calling this method and then using the set..Handler methods in ARPHandlers . The handlers can be copied onto another ARP instance using the ARP.setHandlersWith method.
See Also:   ARPHandlers.setStatementHandler(StatementHandler)
See Also:   ARPHandlers.setErrorHandler(ErrorHandler)
See Also:   ARPHandlers.setExtendedHandler(ExtendedHandler)
See Also:   ARPHandlers.setNamespaceHandler(NamespaceHandler)
See Also:   ARP.setHandlersWith The handlers used during parsing.



getLocator
public Locator getLocator()(Code)
When parsing a file, this returns a Locator giving the position of the last XML event processed by ARP. This may return null or misleading results before any tokens have been processed. Locator



getOptions
public ARPOptions getOptions()(Code)
The options used during parsing. The options can be changed by calling this method and then using the set.. methods in ARPOptions . The options can be copied onto another ARP instance using the ARP.setOptionsWith method.
See Also:   ARPOptions.setDefaultErrorMode
See Also:   ARPOptions.setLaxErrorMode
See Also:   ARPOptions.setStrictErrorMode
See Also:   ARPOptions.setStrictErrorMode(int)
See Also:   ARPOptions.setEmbedding(boolean)
See Also:   ARPOptions.setErrorMode(intint)
See Also:   ARP.setOptionsWith The handlers used during parsing.



load
public void load(Reader in, String xmlBase) throws SAXException, IOException(Code)
Load RDF/XML from a Reader.
Parameters:
  in - The input XML document.
Parameters:
  xmlBase - The base URI for the document.
throws:
  SAXException - More serious error during XML or RDF processing; or thrown from the ErrorHandler.
throws:
  IOException - Occurring during XML processing.



load
void load(InputSource is) throws SAXException, IOException(Code)



load
public void load(InputStream in, String xmlBase) throws SAXException, IOException(Code)
Load RDF/XML from an InputStream.
Parameters:
  in - The input XML document.
Parameters:
  xmlBase - The base URI for the document.
throws:
  SAXException - More serious error during XML or RDF processing; or thrown from the ErrorHandler.
throws:
  IOException - Occurring during XML processing.



load
public void load(InputStream in) throws SAXException, IOException(Code)
Load RDF/XML from an InputStream, leaving relative URIs as relative.
Parameters:
  in - The input XML document.
throws:
  SAXException - More serious error during XML or RDF processing; or thrown from the ErrorHandler.
throws:
  IOException - Occurring during XML processing.



load
public void load(Reader in) throws SAXException, IOException(Code)
Load RDF/XML from a Reader, leaving relative URIs as relative.
Parameters:
  in - The input XML document.
throws:
  SAXException - More serious error during XML or RDF processing; or thrown from the ErrorHandler.
throws:
  IOException - Occurring during XML processing.



setBadStatementHandler
void setBadStatementHandler(StatementHandler sh)(Code)



setDefaultErrorMode
public void setDefaultErrorMode()(Code)
ARP.getOptionsARPOptions.setDefaultErrorMode setDefaultErrorMode()



setEmbedding
public void setEmbedding(boolean embed)(Code)
ARP.getOptionsARPOptions.setEmbedding(boolean) setEmbedding(embed)



setErrorHandler
public void setErrorHandler(ErrorHandler eh)(Code)
ARP.getHandlersARPHandlers.setErrorHandler setErrorHandler(eh)



setErrorMode
public int setErrorMode(int errno, int mode)(Code)
ARP.getOptionsARPOptions.setErrorMode(intint) setErrorMode(errno,mode)



setExtendedHandler
public ExtendedHandler setExtendedHandler(ExtendedHandler eh)(Code)
ARP.getHandlersARPHandlers.setExtendedHandler setExtendedHandler(eh)



setHandlersWith
public void setHandlersWith(ARPHandlers handlers)(Code)
Copies the handlers from the argument to be used by this instance. To make further modifications it is necessary to call ARP.getHandlers to retrieve this instance's copy of the handler information.
Parameters:
  handlers - The new values to use.



setLaxErrorMode
public void setLaxErrorMode()(Code)
ARP.getOptionsARPOptions.setLaxErrorMode setLaxErrorMode()



setNamespaceHandler
public NamespaceHandler setNamespaceHandler(NamespaceHandler nh)(Code)
ARP.getHandlersARPHandlers.setNamespaceHandler setNamespaceHandler(nh)



setOptionsWith
public void setOptionsWith(ARPOptions opts)(Code)
Copies the options from the argument to be used by this instance. To make further modifications it is necessary to call ARP.getOptions to retrieve this instance's copy of the options.
Parameters:
  opts - The new values to use.



setStatementHandler
public StatementHandler setStatementHandler(StatementHandler sh)(Code)
ARP.getHandlersARPHandlers.setStatementHandler setStatementHandler(sh)



setStrictErrorMode
public void setStrictErrorMode()(Code)
ARP.getOptionsARPOptions.setStrictErrorMode setStrictErrorMode()



setStrictErrorMode
public void setStrictErrorMode(int nonErrorMode)(Code)
ARP.getOptionsARPOptions.setStrictErrorMode(int) setStrictErrorMode(nonErrorMode)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.