Menu

[r97]: / trunk / src / decodepcode / CONTobject.java  Maximize  Restore  History

Download this file

69 lines (53 with data), 1.4 kB

 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package decodepcode;
import java.io.IOException;
import java.util.Date;
public class CONTobject implements PeopleToolsObject {
String contName, contFmt, lastChangedBy;
int altContNum, contType;
Date lastChanged;
String contData;
byte[] contDataBytes;
public CONTobject(String contName, String contFmt, String lastChangedBy, int altContNum, int contType,
Date lastChanged, byte[] contDataBytes) throws IOException {
super();
this.contName = contName;
this.contFmt = contFmt;
this.lastChangedBy = lastChangedBy;
this.altContNum = altContNum;
this.contType = contType;
this.lastChanged = lastChanged;
if (contType == 4){
this.contData = new String(contDataBytes, "UnicodeLittleUnmarked");
} else {
this.contDataBytes = contDataBytes;
}
}
public byte[] getContDataBytes() {
if (contType == 4){
return contData.getBytes();
} else {
return contDataBytes;
}
}
public String[] getKeys() {
// TODO Auto-generated method stub
return null;
}
public int[] getKeyTypes() {
// TODO Auto-generated method stub
return null;
}
public int getPeopleCodeType() {
return -1;
}
public Date getLastChangedDtTm() {
return lastChanged;
}
public String getLastChangedBy() {
return lastChangedBy;
}
public String getSource() {
// TODO Auto-generated method stub
return null;
}
}
MongoDB Logo MongoDB