GRASS
Class FILE
java.lang.Object
|
+--GRASS.FILE
- public class FILE
- extends java.lang.Object
Wraps FILE* when one is used to access GRASS site lists.
This class does not have any public constructors. Use methods in
libgis to create objects of this class.
- See Also:
libgis
|
Method Summary |
void |
close()
Closes previously opened FILE*. |
Site |
G_get_site()
Reads the next site from the site list file. |
void |
G_put_site(float east,
float north,
java.lang.String desc)
Writes a new site with east and north coordinates and site description
descinto the site list file. |
void |
G_put_site(Site s)
Writes a site into the site list file. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
G_get_site
public Site G_get_site()
- Reads the next site from the site list file. Returns null if there
are no more sites in file.
Wraps GRASS library routine:
G_get_site (fd, east, north, desc)
FILE *fd;
double *east, *north;
char **desc;
See the GRASS 4.2 Programmer's Manual,
Section 12.12.3.Reading and Writing Site List Files
- Returns:
- the next site from the file or null if no more sites are left
G_put_site
public void G_put_site(Site s)
- Writes a site into the site list file.
Wraps GRASS library routine:
G_put_site (fd, east, north, desc)
FILE *fd;
double east, north;
char *desc;
See the GRASS 4.2 Programmer's Manual,
Section 12.12.3. Reading and Writing Site List Files
- Parameters:
s - site to to save
G_put_site
public void G_put_site(float east,
float north,
java.lang.String desc)
- Writes a new site with east and north coordinates and site description
descinto the site list file.
Wraps GRASS library routine:
G_put_site (fd, east, north, desc)
FILE *fd;
double east, north;
char *desc;
See the GRASS 4.2 Programmer's Manual,
Section 12.12.3. Reading and Writing Site List Files
- Parameters:
east - east coordinatenorth - north coordinatedesc - site description
close
public void close()
- Closes previously opened FILE*. Sets open flag to false;
Wraps the folowing function from stdio.h
int fclose(FILE *stream)
GRASS-JNI Home Page