Java Doc for TextFileParser.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
   workbench.db.importer.TextFileParser

TextFileParser
public class TextFileParser implements RowDataProducer,ImportFileParser(Code)

author:
   support@sql-workbench.net



Constructor Summary
public  TextFileParser()
    
public  TextFileParser(File aFile)
    

Method Summary
public  voidaddColumnFilter(String colname, String regex)
    
public  voidcancel()
    
protected  voidcheckTargetTable()
    
public  intgetColumnCount()
    
public  StringgetColumns()
    
public  List<ColumnIdentifier>getColumnsFromFile()
     Return the column names found in the input file.
public  booleangetDecodeUnicode()
    
public  StringgetEncoding()
    
public  ImportFileHandlergetFileHandler()
    
public  StringgetLastRecord()
    
public  MessageBuffergetMessages()
    
public  QuoteEscapeTypegetQuoteEscaping()
    
public  StringgetSourceFilename()
    
protected  booleanhasColumnFilter()
    
public  booleanhasErrors()
    
public  booleanhasWarnings()
    
public  voidimportAllColumns()
    
public  booleanisCancelled()
    
public  booleanisEmptyStringIsNull()
     Getter for property emptyStringIsNull.
public  booleanisTrimValues()
    
public  voidsetAbortOnError(boolean flag)
    
public  voidsetCheckDependencies(boolean flag)
    
public  voidsetColumnWidths(Map<ColumnIdentifier, Integer> widthMapping)
     Define the width for each column.
public  voidsetColumns(List<ColumnIdentifier> columnList)
     Define the columns in the input file.
public  voidsetColumns(List<ColumnIdentifier> columnList, boolean checkTargetTable)
    
public  voidsetConnection(WbConnection aConn)
    
public  voidsetContainsHeader(boolean aFlag)
    
public  voidsetDecodeUnicode(boolean flag)
    
public  voidsetDelimiter(String delimit)
    
public  voidsetEmptyStringIsNull(boolean flag)
     Setter for property emptyStringIsNull.
public  voidsetEnableMultilineRecords(boolean flag)
    
public  voidsetEncoding(String enc)
    
public  voidsetErrorHandler(JobErrorHandler handler)
    
public  voidsetImportColumnNames(List<String> columnList)
    
public  voidsetImportColumns(List<ColumnIdentifier> columnList)
     Define the columns that should be imported.
public  voidsetInputFile(File file)
    
public  voidsetLineFilter(String regex)
    
public  voidsetQuoteChar(String aChar)
    
public  voidsetQuoteEscaping(QuoteEscapeType type)
    
public  voidsetReceiver(RowDataReceiver rec)
    
public  voidsetSourceDirectory(String dir)
    
public  voidsetSourceExtension(String ext)
    
public  voidsetTableName(String aName)
    
public  voidsetTargetSchema(String schema)
    
public  voidsetTreatBlobsAsFilenames(boolean flag)
    
public  voidsetTreatClobAsFilenames(boolean flag)
    
public  voidsetTrimValues(boolean trimValues)
    
public  voidsetValueConverter(ValueConverter convert)
    
public  voidsetValueModifier(ImportValueModifier mod)
    
public  voidsetupFileColumns()
    
public  voidstart()
    
public  voidstop()
    


Constructor Detail
TextFileParser
public TextFileParser()(Code)



TextFileParser
public TextFileParser(File aFile)(Code)




Method Detail
addColumnFilter
public void addColumnFilter(String colname, String regex)(Code)



cancel
public void cancel()(Code)



checkTargetTable
protected void checkTargetTable() throws SQLException(Code)



getColumnCount
public int getColumnCount()(Code)



getColumns
public String getColumns()(Code)
Returns the column list as a comma separated string that can be used for the WbImport command



getColumnsFromFile
public List<ColumnIdentifier> getColumnsFromFile()(Code)
Return the column names found in the input file. The identifiers will only have a name but no data type assigned as this information is not available in a text file. If the input file does not contain a header row, the columns will be named Column1, Column2, ... the columns defined in the input file



getDecodeUnicode
public boolean getDecodeUnicode()(Code)



getEncoding
public String getEncoding()(Code)



getFileHandler
public ImportFileHandler getFileHandler()(Code)



getLastRecord
public String getLastRecord()(Code)



getMessages
public MessageBuffer getMessages()(Code)



getQuoteEscaping
public QuoteEscapeType getQuoteEscaping()(Code)



getSourceFilename
public String getSourceFilename()(Code)



hasColumnFilter
protected boolean hasColumnFilter()(Code)



hasErrors
public boolean hasErrors()(Code)



hasWarnings
public boolean hasWarnings()(Code)



importAllColumns
public void importAllColumns()(Code)



isCancelled
public boolean isCancelled()(Code)



isEmptyStringIsNull
public boolean isEmptyStringIsNull()(Code)
Getter for property emptyStringIsNull. Value of property emptyStringIsNull.



isTrimValues
public boolean isTrimValues()(Code)



setAbortOnError
public void setAbortOnError(boolean flag)(Code)



setCheckDependencies
public void setCheckDependencies(boolean flag)(Code)



setColumnWidths
public void setColumnWidths(Map<ColumnIdentifier, Integer> widthMapping)(Code)
Define the width for each column. This will reset a delimiter defined using setDelimiter()



setColumns
public void setColumns(List<ColumnIdentifier> columnList) throws SQLException(Code)
Define the columns in the input file.
Parameters:
  columnList - the list of columns present in the input file
throws:
  SQLException - if the columns could not be verified in the DB or the target table does not exist



setColumns
public void setColumns(List<ColumnIdentifier> columnList, boolean checkTargetTable) throws SQLException(Code)



setConnection
public void setConnection(WbConnection aConn)(Code)



setContainsHeader
public void setContainsHeader(boolean aFlag)(Code)



setDecodeUnicode
public void setDecodeUnicode(boolean flag)(Code)



setDelimiter
public void setDelimiter(String delimit)(Code)



setEmptyStringIsNull
public void setEmptyStringIsNull(boolean flag)(Code)
Setter for property emptyStringIsNull.
Parameters:
  flag - New value of property emptyStringIsNull.



setEnableMultilineRecords
public void setEnableMultilineRecords(boolean flag)(Code)



setEncoding
public void setEncoding(String enc)(Code)



setErrorHandler
public void setErrorHandler(JobErrorHandler handler)(Code)



setImportColumnNames
public void setImportColumnNames(List<String> columnList) throws IllegalArgumentException(Code)



setImportColumns
public void setImportColumns(List<ColumnIdentifier> columnList)(Code)
Define the columns that should be imported. If the list is empty or null, then all columns will be imported
Parameters:
  columnList - the columns to be imported



setInputFile
public void setInputFile(File file)(Code)



setLineFilter
public void setLineFilter(String regex)(Code)



setQuoteChar
public void setQuoteChar(String aChar)(Code)



setQuoteEscaping
public void setQuoteEscaping(QuoteEscapeType type)(Code)



setReceiver
public void setReceiver(RowDataReceiver rec)(Code)



setSourceDirectory
public void setSourceDirectory(String dir)(Code)



setSourceExtension
public void setSourceExtension(String ext)(Code)



setTableName
public void setTableName(String aName)(Code)



setTargetSchema
public void setTargetSchema(String schema)(Code)



setTreatBlobsAsFilenames
public void setTreatBlobsAsFilenames(boolean flag)(Code)



setTreatClobAsFilenames
public void setTreatClobAsFilenames(boolean flag)(Code)



setTrimValues
public void setTrimValues(boolean trimValues)(Code)



setValueConverter
public void setValueConverter(ValueConverter convert)(Code)



setValueModifier
public void setValueModifier(ImportValueModifier mod)(Code)



setupFileColumns
public void setupFileColumns() throws SQLException, IOException(Code)



start
public void start() throws Exception(Code)



stop
public void stop()(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.