Java Doc for BaseXMLWriter.java in  » RSS-RDF » Jena-2.5.5 » com » hp » hpl » jena » xmloutput » impl » 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.xmloutput.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter

All known Subclasses:   com.hp.hpl.jena.xmloutput.impl.Abbreviated,  com.hp.hpl.jena.xmloutput.impl.Basic,
BaseXMLWriter
abstract public class BaseXMLWriter implements RDFXMLWriterI(Code)
This is not part of the public API. Base class for XML serializers. All methods with side-effects should be synchronized in this class and its subclasses. (i. e. XMLWriters assume that the world is not changing around them while they are writing). Functionality:
  • setProperty etc
  • namespace prefixes
  • xmlbase
  • relative URIs
  • encoding issues
  • anonymous node presentationall
  • errorHandler

author:
   jjcnee
version:
   Release='$Name: $' Revision='$Revision: 1.67 $' Date='$Date: 2008/01/02 12:09:33 $'


Field Summary
static  StringRDFNS
    
 intanonCount
    
 HashMapanonMap
    
public static  booleandbg
    
 RDFErrorHandlererrorHandler
    
static  IRIFactoryfactory
    
final static  char[]hexchar
    
protected static  SimpleLoggerlogger
    
 booleanlongId
    
final protected static  PatternpredefinedEntityNames
    
protected  BooleanshowDoctypeDeclaration
    
 BooleanshowXmlDeclaration
    
 inttabSize
    
 intwidth
    
 StringxmlBase
    

Constructor Summary
public  BaseXMLWriter()
    

Method Summary
 voidaddNameSpace(String uri)
    
 StringanonId(Resource r)
    
protected  StringattributeQuoted(String s)
    
 StringattributeTag(String uriref)
    
 StringattributeTag(String uri, String local)
    
abstract protected  voidblockRule(Resource r)
    
 StringendElementTag(String uri, String local)
    
protected  StringendElementTag(String uriref)
    
final public  StringgetPrefixFor(String uri)
    
 booleanisDefaultNamespace(String uri)
    
public  booleanisPredefinedEntityName(String name)
    
 StringrdfAt(String local)
    
 StringrdfEl(String local)
    
protected  Stringrelativize(String uri)
     Answer the form of the URI after relativisation according to the relativeFlags set by properties.
 Resource[]setBlockRules(Object o)
    
public synchronized  RDFErrorHandlersetErrorHandler(RDFErrorHandler errHandler)
     Set an error handler.
Parameters:
  errHandler - The new error handler to be used, or null for the default handler.
public static  SimpleLoggersetLogger(SimpleLogger lg)
    
final public synchronized  voidsetNsPrefix(String prefix, String ns)
    
final public synchronized  ObjectsetProperty(String propName, Object propValue)
     Set the writer property propName to the value obtained from propValue.
 Resource[]setTypes(Resource x)
    
 voidsetupMaps()
    
 StringsplitTag(String uriref, int type)
    
 StringstartElementTag(String uri, String local)
    
protected  StringstartElementTag(String uriref)
    
public static  intstr2flags(String pv)
    
protected  StringsubstitutedAttribute(String s)
    
 Stringtag(String namespace, String local, int type, boolean localIsQname)
    
abstract protected  voidunblockAll()
    
 voidworkOutNamespaces()
    
final public  voidwrite(Model model, OutputStream out, String base)
     Write out an XML serialization of a model.
public synchronized  voidwrite(Model baseModel, Writer out, String base)
     Serialize Model model to Writer out.
Parameters:
  out - The Writer to which the serialization should be sent.
Parameters:
  baseModel - The model to be written.
Parameters:
  base - the base URI for relative URI calculations.
abstract protected  voidwriteBody(Model mdl, PrintWriter pw, String baseUri, boolean inclXMLBase)
    
 StringxmlnsDecl()
    

Field Detail
RDFNS
static String RDFNS(Code)



anonCount
int anonCount(Code)



anonMap
HashMap anonMap(Code)



dbg
public static boolean dbg(Code)



errorHandler
RDFErrorHandler errorHandler(Code)



factory
static IRIFactory factory(Code)



hexchar
final static char[] hexchar(Code)



logger
protected static SimpleLogger logger(Code)



longId
boolean longId(Code)



predefinedEntityNames
final protected static Pattern predefinedEntityNames(Code)



showDoctypeDeclaration
protected Boolean showDoctypeDeclaration(Code)



showXmlDeclaration
Boolean showXmlDeclaration(Code)



tabSize
int tabSize(Code)



width
int width(Code)



xmlBase
String xmlBase(Code)




Constructor Detail
BaseXMLWriter
public BaseXMLWriter()(Code)




Method Detail
addNameSpace
void addNameSpace(String uri)(Code)



anonId
String anonId(Resource r)(Code)



attributeQuoted
protected String attributeQuoted(String s)(Code)



attributeTag
String attributeTag(String uriref)(Code)



attributeTag
String attributeTag(String uri, String local)(Code)



blockRule
abstract protected void blockRule(Resource r)(Code)



endElementTag
String endElementTag(String uri, String local)(Code)



endElementTag
protected String endElementTag(String uriref)(Code)



getPrefixFor
final public String getPrefixFor(String uri)(Code)



isDefaultNamespace
boolean isDefaultNamespace(String uri)(Code)



isPredefinedEntityName
public boolean isPredefinedEntityName(String name)(Code)



rdfAt
String rdfAt(String local)(Code)



rdfEl
String rdfEl(String local)(Code)



relativize
protected String relativize(String uri)(Code)
Answer the form of the URI after relativisation according to the relativeFlags set by properties. If the flags are 0 or the base URI is null, answer the original URI. Throw an exception if the URI is "bad" and we demandGoodURIs.



setBlockRules
Resource[] setBlockRules(Object o)(Code)



setErrorHandler
public synchronized RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler)(Code)
Set an error handler.
Parameters:
  errHandler - The new error handler to be used, or null for the default handler. the old error handler



setLogger
public static SimpleLogger setLogger(SimpleLogger lg)(Code)



setNsPrefix
final public synchronized void setNsPrefix(String prefix, String ns)(Code)



setProperty
final public synchronized Object setProperty(String propName, Object propValue)(Code)
Set the writer property propName to the value obtained from propValue. Return an Object representation of the original value.
See Also:   com.hp.hpl.jena.rdf.model.RDFWriter.setProperty(java.lang.Stringjava.lang.Object)



setTypes
Resource[] setTypes(Resource x)(Code)



setupMaps
void setupMaps()(Code)



splitTag
String splitTag(String uriref, int type)(Code)



startElementTag
String startElementTag(String uri, String local)(Code)



startElementTag
protected String startElementTag(String uriref)(Code)



str2flags
public static int str2flags(String pv)(Code)



substitutedAttribute
protected String substitutedAttribute(String s)(Code)



tag
String tag(String namespace, String local, int type, boolean localIsQname)(Code)



unblockAll
abstract protected void unblockAll()(Code)



workOutNamespaces
void workOutNamespaces()(Code)



write
final public void write(Model model, OutputStream out, String base)(Code)
Write out an XML serialization of a model.
Parameters:
  model - the model to be serialized
Parameters:
  out - the OutputStream to receive the serialization
Parameters:
  base - The URL at which the file will be placed.



write
public synchronized void write(Model baseModel, Writer out, String base)(Code)
Serialize Model model to Writer out.
Parameters:
  out - The Writer to which the serialization should be sent.
Parameters:
  baseModel - The model to be written.
Parameters:
  base - the base URI for relative URI calculations. null means use only absolute URI's.



writeBody
abstract protected void writeBody(Model mdl, PrintWriter pw, String baseUri, boolean inclXMLBase)(Code)



xmlnsDecl
String xmlnsDecl()(Code)



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.