|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.c5corp.DEMconvert.C5DemAbstractFilter
public abstract class C5DemAbstractFilter
An abstract class implementing c5demOutFilterInterface, that can be implemented to create new c5 DemTool filters for exporting DEM data into any text format. Extend this class to create new output filters that will work in the C5 DEM Tool.
extensions must implement methods:
public void writeHeader(Dem dem, PrintWriter out);public void writeData(Dem dem, PrintWriter out);
public String getFilterInfo();
public String getOutputPath();
public static PrintWriter openOutputFile(String out_filename, String path),
for opening an output file.
| Field Summary |
|---|
| Fields inherited from interface com.c5corp.c5dem.C5DemConstants |
|---|
copy, E_BIT, FEETTOMETERS, hdatum, METERSTOFEET, N_BIT, NE_BIT, NW_BIT, S_BIT, SE_BIT, SW_BIT, system, units, vdatum, W_BIT |
| Constructor Summary | |
|---|---|
C5DemAbstractFilter()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
getFilterInfo()
A method that returns a string containing information about the filter. |
java.lang.String |
getOutputPath()
Returns a relative path describing where to place the output the default implementation is to use the present working directory. |
static java.io.PrintWriter |
openOutputFile(java.lang.String out_filename,
java.lang.String path)
A method to open a new output file with a name derived from the type a metadata, record 1, which contains the map name |
java.lang.String |
toString()
overrides java.lang.Object.toString() |
abstract void |
writeData(Dem dem,
java.io.PrintWriter out)
method for output of the formated data |
abstract void |
writeHeader(Dem dem,
java.io.PrintWriter out)
A method for output of metadata |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public C5DemAbstractFilter()
| Method Detail |
|---|
public abstract void writeHeader(Dem dem,
java.io.PrintWriter out)
dem - A Dem.out - Where to write the data.
public abstract void writeData(Dem dem,
java.io.PrintWriter out)
dem - A Dem.out - Where to write the data.public abstract java.lang.String getFilterInfo()
public static java.io.PrintWriter openOutputFile(java.lang.String out_filename,
java.lang.String path)
out_filename - name of the output filepath - local path
public java.lang.String getOutputPath()
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||