Java Doc for DBaseFile.java in  » GIS » deegree » org » deegree » io » dbaseapi » 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 » GIS » deegree » org.deegree.io.dbaseapi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.deegree.io.dbaseapi.DBaseFile

DBaseFile
public class DBaseFile (Code)
the datatypes of the dBase file and their representation as java types: dBase-type dBase-type-ID java-type character "C" String float "F" Float number "N" Double logical "L" String memo "M" String date "D" Date binary "B" ByteArrayOutputStream
author:
   Andreas Poth
author:
   last edited by: $Author: apoth $
version:
   $Revision: 9342 $, $Date: 2007-12-27 04:32:57 -0800 (Thu, 27 Dec 2007) $



Constructor Summary
public  DBaseFile(String url)
    
public  DBaseFile(String url, FieldDescriptor[] fieldDesc)
    

Method Summary
public  voidclose()
    
public  StringgetColumn(String col_name)
    
public  intgetDataLength(String field)
    
public  String[]getDataTypes()
    
public  String[]getDataTypes(String[] fields)
    
public  FeaturegetFRow(int rowNo)
     Returns a row of the dBase file as a Feature instance.
public  FeatureTypegetFeatureType()
    
public  String[]getProperties()
    
public  intgetRecordNum()
    
public  voidgoTop()
     Positions the record pointer at the top of the table.
public  booleannextRecord()
     Advance the record pointer to the next record.
public  voidsetFeatureType(FeatureType ft, Map<PropertyType, String> ftMapping)
     Overrides the default feature type (which is generated from all columns in the dbase file) to allow customized naming and ordering of properties.
public  voidsetRecord(ArrayList recData)
     writes a data record to byte array representing the data section of the dBase file.
public  voidsetRecord(int index, ArrayList recData)
     writes a data record to byte array representing the data section of the dBase file.
public  voidwriteAllToFile()
    


Constructor Detail
DBaseFile
public DBaseFile(String url) throws IOException(Code)
constructor
only for reading a dBase file

Parameters:
  url -



DBaseFile
public DBaseFile(String url, FieldDescriptor[] fieldDesc) throws DBaseException(Code)
constructor
only for writing a dBase file

Parameters:
  url -
Parameters:
  fieldDesc -




Method Detail
close
public void close()(Code)



getColumn
public String getColumn(String col_name) throws DBaseException(Code)
column's string value from the current row.



getDataLength
public int getDataLength(String field) throws DBaseException(Code)

Parameters:
  field - the size of a column



getDataTypes
public String[] getDataTypes() throws DBaseException(Code)
datatype of each column of the database



getDataTypes
public String[] getDataTypes(String[] fields) throws DBaseException(Code)

Parameters:
  fields - the datatype of each column of the database specified by fields



getFRow
public Feature getFRow(int rowNo) throws DBaseException(Code)
Returns a row of the dBase file as a Feature instance.
Parameters:
  rowNo - a row of the dBase file as a Feature instance
throws:
  DBaseException -



getFeatureType
public FeatureType getFeatureType()(Code)
the feature type of the generated features



getProperties
public String[] getProperties() throws DBaseException(Code)
properties (column headers) of the dBase-file



getRecordNum
public int getRecordNum() throws DBaseException(Code)
number of records in the table



goTop
public void goTop() throws DBaseException(Code)
Positions the record pointer at the top of the table.



nextRecord
public boolean nextRecord() throws DBaseException(Code)
Advance the record pointer to the next record. true if pointer has been increased



setFeatureType
public void setFeatureType(FeatureType ft, Map<PropertyType, String> ftMapping)(Code)
Overrides the default feature type (which is generated from all columns in the dbase file) to allow customized naming and ordering of properties.
Parameters:
  ft -
Parameters:
  ftMapping -



setRecord
public void setRecord(ArrayList recData) throws DBaseException(Code)
writes a data record to byte array representing the data section of the dBase file. The method gets the data type of each field in recData from fieldDesc wich has been set at the constructor.
Parameters:
  recData -
throws:
  DBaseException -



setRecord
public void setRecord(int index, ArrayList recData) throws DBaseException(Code)
writes a data record to byte array representing the data section of the dBase file. The method gets the data type of each field in recData from fieldDesc wich has been set at the constructor. index specifies the location of the retrieved record in the datasection. if an invalid index is used an exception will be thrown
Parameters:
  index -
Parameters:
  recData -
throws:
  DBaseException -



writeAllToFile
public void writeAllToFile() throws IOException, DBaseException(Code)
creates the dbase file and writes all data to it if the file specified by fname (s.o.) exists it will be deleted!
throws:
  IOException -
throws:
  DBaseException -



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.