Java Doc for XmlDataFileParser.java in  » Database-Client » SQL-Workbench » workbench » db » importer » 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 » Database Client » SQL Workbench » workbench.db.importer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.xml.sax.helpers.DefaultHandler
      workbench.db.importer.XmlDataFileParser

XmlDataFileParser
public class XmlDataFileParser extends DefaultHandler implements RowDataProducer,ImportFileParser(Code)

author:
   support@sql-workbench.net



Constructor Summary
public  XmlDataFileParser()
    
public  XmlDataFileParser(File inputFile)
    

Method Summary
public  voidcancel()
    
public  voidcharacters(char buf, int offset, int len)
    
public  voidcheckTargetColumns()
     Check if all columns defined for the import (through the table definition as part of the XML file, or passed by the user on the command line) are actually available in the target table.
public  voidendDocument()
    
public  voidendElement(String namespaceURI, String sName, String qName)
    
public  voiderror(SAXParseException e)
    
public  voidfatalError(SAXParseException e)
    
public  StringgetColumns()
    
public  List<ColumnIdentifier>getColumnsFromFile()
    
public  StringgetEncoding()
    
public  ImportFileHandlergetFileHandler()
    
public  StringgetLastRecord()
    
public  MessageBuffergetMessages()
    
public  StringgetMissingColumn()
    
public  StringgetSourceDirectory()
    
public  StringgetSourceFilename()
    
public  booleanhasErrors()
    
public  booleanhasWarnings()
    
public  voidignorableWhitespace(char[] ch, int start, int length)
    
public  booleanisCancelled()
    
public  voidprocessingInstruction(String target, String data)
    
public  voidsetAbortOnError(boolean flag)
    
public  voidsetCheckDependencies(boolean flag)
    
public  voidsetColumns(String columnList)
    
public  voidsetColumns(List<ColumnIdentifier> cols)
    
public  voidsetConnection(WbConnection conn)
    
public  voidsetEncoding(String enc)
    
public  voidsetErrorHandler(JobErrorHandler handler)
    
public  voidsetReceiver(RowDataReceiver aReceiver)
    
public  voidsetSourceDirectory(String dir)
    
public  voidsetSourceExtension(String ext)
    
public  voidsetSourceFile(File file)
    
public  voidsetTableName(String aName)
    
public  voidsetValueConverter(ValueConverter convert)
    
public  voidsetValueModifier(ImportValueModifier mod)
    
public  voidstart()
    
public  voidstartDocument()
    
public  voidstartElement(String namespaceURI, String sName, String qName, Attributes attrs)
    
public  voidstop()
    
public  voidwarning(SAXParseException err)
    


Constructor Detail
XmlDataFileParser
public XmlDataFileParser()(Code)



XmlDataFileParser
public XmlDataFileParser(File inputFile)(Code)




Method Detail
cancel
public void cancel()(Code)



characters
public void characters(char buf, int offset, int len) throws SAXException(Code)



checkTargetColumns
public void checkTargetColumns() throws SQLException(Code)
Check if all columns defined for the import (through the table definition as part of the XML file, or passed by the user on the command line) are actually available in the target table. For this all columns of the target table are retrieved from the database, and each column that has been defined through setColumns() is checked whether it exists there. Columns that are not found are dropped from the list of import columns If continueOnError == true, a warning is added to the messages. Otherwise an Exception is thrown.



endDocument
public void endDocument() throws SAXException(Code)



endElement
public void endElement(String namespaceURI, String sName, String qName) throws SAXException(Code)



error
public void error(SAXParseException e) throws SAXParseException(Code)



fatalError
public void fatalError(SAXParseException e) throws SAXParseException(Code)



getColumns
public String getColumns()(Code)



getColumnsFromFile
public List<ColumnIdentifier> getColumnsFromFile()(Code)



getEncoding
public String getEncoding()(Code)



getFileHandler
public ImportFileHandler getFileHandler()(Code)



getLastRecord
public String getLastRecord()(Code)



getMessages
public MessageBuffer getMessages()(Code)



getMissingColumn
public String getMissingColumn()(Code)
Returns the first column from the import columns that is not found in the import file
See Also:   XmlDataFileParser.setColumns(String)
See Also:   XmlDataFileParser.setColumns(List)



getSourceDirectory
public String getSourceDirectory()(Code)



getSourceFilename
public String getSourceFilename()(Code)



hasErrors
public boolean hasErrors()(Code)



hasWarnings
public boolean hasWarnings()(Code)



ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException(Code)
Only implemented to have even more possibilities for cancelling the import



isCancelled
public boolean isCancelled()(Code)



processingInstruction
public void processingInstruction(String target, String data) throws SAXException(Code)



setAbortOnError
public void setAbortOnError(boolean flag)(Code)



setCheckDependencies
public void setCheckDependencies(boolean flag)(Code)



setColumns
public void setColumns(String columnList) throws SQLException(Code)



setColumns
public void setColumns(List<ColumnIdentifier> cols) throws SQLException(Code)
Define the columns to be imported



setConnection
public void setConnection(WbConnection conn)(Code)



setEncoding
public void setEncoding(String enc)(Code)



setErrorHandler
public void setErrorHandler(JobErrorHandler handler)(Code)



setReceiver
public void setReceiver(RowDataReceiver aReceiver)(Code)



setSourceDirectory
public void setSourceDirectory(String dir)(Code)



setSourceExtension
public void setSourceExtension(String ext)(Code)



setSourceFile
public void setSourceFile(File file)(Code)



setTableName
public void setTableName(String aName)(Code)



setValueConverter
public void setValueConverter(ValueConverter convert)(Code)



setValueModifier
public void setValueModifier(ImportValueModifier mod)(Code)



start
public void start() throws Exception(Code)



startDocument
public void startDocument() throws SAXException(Code)



startElement
public void startElement(String namespaceURI, String sName, String qName, Attributes attrs) throws SAXException(Code)



stop
public void stop()(Code)



warning
public void warning(SAXParseException err) throws SAXParseException(Code)



Methods inherited from org.xml.sax.helpers.DefaultHandler
public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc)
public void endDocument() throws SAXException(Code)(Java Doc)
public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc)
public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc)
public void error(SAXParseException e) throws SAXException(Code)(Java Doc)
public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc)
public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc)
public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc)
public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc)
public InputSource resolveEntity(String publicId, String systemId) throws IOException, SAXException(Code)(Java Doc)
public void setDocumentLocator(Locator locator)(Code)(Java Doc)
public void skippedEntity(String name) throws SAXException(Code)(Java Doc)
public void startDocument() throws SAXException(Code)(Java Doc)
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException(Code)(Java Doc)
public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc)
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc)
public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)

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.