Method
ShowFile
(String fileName, int type)
Source from the content-addressed store, hash-verified
| 62 | int type; |
| 63 | |
| 64 | public ShowFile(String fileName, int type) { |
| 65 | super(fileName); |
| 66 | this.type = type; |
| 67 | load(fileName); |
| 68 | //#ifndef NOMMEDIA |
| 69 | //# if (type == TYPE_MEDIA) { |
| 70 | //# play(fileName); |
| 71 | //# } |
| 72 | //#endif |
| 73 | if (type == TYPE_IMAGE) { |
| 74 | view(fileName); |
| 75 | } |
| 76 | if (type == TYPE_TEXT) { |
| 77 | read(fileName); |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | private void load(String file) { |
| 82 | FileIO f = FileIO.createConnection(file); |
Callers
nothing calls this directly
Tested by
no test coverage detected