home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
linuxmafia.com 2016
/
linuxmafia.com.tar
/
linuxmafia.com
/
pub
/
palmos
/
astro-src-2.1.0beta.tar.gz
/
astro-src-2.1.0beta.tar
/
astro-src-2.1.0beta
/
java
/
AstroAppInfo.java
< prev
next >
Wrap
Text File
|
2000-08-09
|
767b
|
39 lines
import palmutils.pdb.*;
import java.io.*;
public class AstroAppInfo extends PDBElement
{
short numRecords; // # of records in the db.
short currRecord; // Last place we looked for a record.
public String toString()
{
return "["+numRecords+","+currRecord+"]";
}
public int getSize()
{
return 4;
}
public void write(DataOutput out) throws IOException
{
out.writeShort(numRecords);
out.writeShort(currRecord);
}
public void read(DataInput in) throws IOException
{
numRecords = in.readShort();
currRecord = in.readShort();
}
public AstroAppInfo()
{}
public AstroAppInfo(DataInput in) throws IOException
{
read(in);
}
}