Child: [r11] (diff)

Download this file

exe.java    73 lines (58 with data), 1.6 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
69
70
71
72
import java.io.File;
import script.FileExtension;
import spdxlib.ContentType;
import spdxlib.FileCategory;
/*
* SPDXVersion: SPDX-1.1
* Creator: Person: Nuno Brito (nuno.brito@triplecheck.de)
* Creator: Organization: TripleCheck (contact@triplecheck.de)
* Created: 2013-15-01T00:00:00Z
* LicenseName: NOASSERTION
* FileName: exe.java
* FileCategory: SOURCE
* FileCopyrightText: <text> Copyright 2013 Nuno Brito, TripleCheck </text>
* FileComment: <text> Defines how a file with a given extension should
* look alike. This is mostly useful to know in our context:
* - is this a plain text or binary file?
* - is there any information that we can extract from this file?
* </text>
*/
/**
*
* @author Nuno Brito, 15th of November 2013 in Darmstadt, Germany.
* nuno.brito@triplecheck.de | http://nunobrito.eu
*/
public class exe extends FileExtension{
@Override
public Boolean isApplicable(File binaryFile) {
return true;
}
@Override
public Boolean isApplicable(String textFile) {
return true;
}
@Override
public String getDescription() {
return "Windows Executable";
}
@Override
public String getIdentifierShort() {
return "exe";
}
@Override
public ContentType getContentType() {
return ContentType.BINARY;
}
@Override
public FileCategory getCategory() {
return FileCategory.UNKNOWN;
}
@Override
public String getCopyright() {
return null;
}
@Override
public String getVersion() {
return null;
}
}