public class ShapefileDataRecordSource extends DataRecordSource
Copyright 2008 Partner Software, Inc.
IterableInput.StatuscurrentValues, fieldNames, verbose| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
fetch, getCurrentValues, getFetched, getFieldNames, isVerbose, setVerbose, toCogclose, getException, getStatus, isFetchValid, iterator, openpublic ShapefileDataRecordSource(VfsFile shpFile) throws java.io.IOException
java.io.IOExceptionprotected 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.Exceptionprotected 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.Exceptionprotected 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()
DataRecordSourcecopy in class DataRecordSource