|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.io.AbstractIterableInput<Naming<java.lang.Object>>
com.partnersoft.io.DataRecordSource
com.partnersoft.formats.shapefile.ShapefileDataRecordSource
public class ShapefileDataRecordSource
Treats an ESRI shapefile as a tabular DataRecordSource.
Copyright 2008 Partner Software, Inc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.partnersoft.io.IterableInput |
|---|
IterableInput.Status |
| Field Summary |
|---|
| Fields inherited from class com.partnersoft.io.DataRecordSource |
|---|
currentValues, fieldNames, verbose |
| Constructor Summary | |
|---|---|
ShapefileDataRecordSource(VfsFile shpFile)
Given just the .shp (or really, any extension) file, tries to locate the .shp and .dbf and go from there. |
|
ShapefileDataRecordSource(VfsFile shpFile,
VfsFile dbfFile)
Creates a shapefile reader, given an .shp and .dbf file. |
|
| Method Summary | |
|---|---|
protected void |
closeImp()
Subclass implementation of guts of close() method. |
DataRecordSource |
copy()
Makes a copy of this DataRecordSource, that you can iterate over separately. |
protected boolean |
fetchImp()
Subclass implementation of guts of fetch() method. |
protected void |
openImp()
Subclass implementation of guts of open() method. |
| Methods inherited from class com.partnersoft.io.DataRecordSource |
|---|
fetch, getCurrentValues, getFetched, getFieldNames, isVerbose, setVerbose, toCog |
| Methods inherited from class com.partnersoft.io.AbstractIterableInput |
|---|
close, getException, getStatus, isFetchValid, iterator, open |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ShapefileDataRecordSource(VfsFile shpFile)
throws java.io.IOException
java.io.IOException
public ShapefileDataRecordSource(VfsFile shpFile,
VfsFile dbfFile)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
protected void closeImp()
throws java.lang.Exception
AbstractIterableInputSubclasses must implement this to do the actual work required by close(). Feel free to throw exceptions; these are caught inside the close() itself and applied to the exception variable. Thus, you can focus on the actual task instead of paperwork.
closeImp in class AbstractIterableInput<Naming<java.lang.Object>>java.lang.Exception
protected boolean fetchImp()
throws java.lang.Exception
AbstractIterableInputSubclasses must implement this to do the actual work required by fetch(). Feel free to throw exceptions; these are caught inside the fetch() itself and applied to the exception variable. Thus, you can focus on the actual task instead of paperwork.
fetchImp in class AbstractIterableInput<Naming<java.lang.Object>>java.lang.Exception
protected void openImp()
throws java.lang.Exception
AbstractIterableInputSubclasses must implement this to do the actual work required by open(). Feel free to throw exceptions; these are caught inside the open() itself and applied to the exception variable. Thus, you can focus on the actual task instead of paperwork.
openImp in class AbstractIterableInput<Naming<java.lang.Object>>java.lang.Exceptionpublic DataRecordSource copy()
DataRecordSource
copy in class DataRecordSource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||