File: Record.java

package info (click to toggle)
pilot-link 0.8.11-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 2,604 kB
  • ctags: 3,302
  • sloc: ansic: 25,154; java: 2,162; cpp: 1,641; sh: 1,629; makefile: 1,525; perl: 723; yacc: 660; python: 267; tcl: 14
file content (31 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

package Pdapilot.memo;

import java.io.*;

/** A representation of a memo database record.
 */

public class Record extends Pdapilot.Record {

		public String text;
		
		public Record() {
			super();
		}
		
		public Record(byte[] contents, Pdapilot.RecordID id, int index, int attr, int cat) {
			super(contents, id, index, attr, cat);
		}
		
		public native void unpack(byte[] data);
		public native byte[] pack();
        		
		public void fill() {
			text = "";
		}
		
        public String describe() {
            return "text '"+Pdapilot.Util.prettyPrint(text)+"', "+super.describe();
        }
}