Produced by Araxis Merge on 6/9/2017 3:51:26 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Fri Jun 9 19:51:26 2017 UTC | ||
| 2 | eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-web\src\main\java\gov\va\nvap\web\helper\document | MediaType.java | Mon Jun 5 03:32:36 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 0 | 0 |
| Changed | 0 | 0 |
| Inserted | 1 | 62 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | package go v.va.nvap. web.helper .document; | |||||
| 2 | ||||||
| 3 | public enu m MediaTyp e { | |||||
| 4 | AP PLICATIONB INARY("app lication/b inary", "b in"), APPL ICATIONPDF ( | |||||
| 5 | "appli cation/pdf ", "pdf"), | |||||
| 6 | MULTIP ARTFORMDAT AXLSX("app lication/v nd.openxml formats-of ficedocume nt.spreads heetml.she et", "xlsx "), | |||||
| 7 | MULTIP ARTFORMDAT AXLS("appl ication/vn d.ms-excel ", "xls"), | |||||
| 8 | MULTIP ARTFORMDAT ACSV("appl ication/vn d.ms-excel ", "csv"), | |||||
| 9 | IMAGEB MP("image/ bmp", "bmp "), IMAGEC OD( | |||||
| 10 | "image /cis-cod", "cod"), I MAGEGIF("i mage/gif", "gif"), I MAGEIEF( | |||||
| 11 | "image /ief", "ie f"), IMAGE JPEG("imag e/jpeg", " jpg"), IMA GEPJPEG( | |||||
| 12 | "image /pjpeg", " jpg"), IMA GEPNG("ima ge/png", " png"), IMA GEPNG2( | |||||
| 13 | "image /x-png", " png"), IMA GESVG("ima ge/svg+xml ", "svg"), IMAGETIF( | |||||
| 14 | "image /tiff", "t if"), PLAI NTEXT("tex t/plain", "txt"); | |||||
| 15 | ||||||
| 16 | pu blic stati c MediaTyp e fromValu e(final St ring value ) { | |||||
| 17 | for (final Med iaType typ e : MediaT ype.values ()) { | |||||
| 18 | if (ty pe.mediaTy pe().equal s(value)) { | |||||
| 19 | return t ype; | |||||
| 20 | } | |||||
| 21 | } | |||||
| 22 | thro w new Runt imeExcepti on("Media Type " + v alue + " n ot support ed!"); | |||||
| 23 | } | |||||
| 24 | ||||||
| 25 | pu blic stati c String g etSupporte dTypes() { | |||||
| 26 | Stri ng support edTypes = ""; | |||||
| 27 | for (int i = 0 ; i < Medi aType.valu es().lengt h; i++) { | |||||
| 28 | suppor tedTypes = supported Types + Me diaType.va lues()[i]. extension; | |||||
| 29 | if (i + 1 < Medi aType.valu es().lengt h) { | |||||
| 30 | supporte dTypes = s upportedTy pes + ','; | |||||
| 31 | } | |||||
| 32 | } | |||||
| 33 | retu rn support edTypes; | |||||
| 34 | } | |||||
| 35 | ||||||
| 36 | pu blic stati c boolean isSupporte d(final St ring value ) { | |||||
| 37 | for (final Med iaType typ e : MediaT ype.values ()) { | |||||
| 38 | if (ty pe.mediaTy pe().equal s(value)) { | |||||
| 39 | return t rue; | |||||
| 40 | } | |||||
| 41 | } | |||||
| 42 | retu rn false; | |||||
| 43 | } | |||||
| 44 | ||||||
| 45 | pr ivate Stri ng extensi on; | |||||
| 46 | ||||||
| 47 | pr ivate Stri ng mediaTy peString; | |||||
| 48 | ||||||
| 49 | pr ivate Medi aType(fina l String m ediaTypeSt ring, fina l String e xtension) { | |||||
| 50 | this .mediaType String = m ediaTypeSt ring; | |||||
| 51 | this .extension = extensi on; | |||||
| 52 | } | |||||
| 53 | ||||||
| 54 | pu blic Strin g extensio n() { | |||||
| 55 | retu rn this.ex tension; | |||||
| 56 | } | |||||
| 57 | ||||||
| 58 | pu blic Strin g mediaTyp e() { | |||||
| 59 | retu rn this.me diaTypeStr ing; | |||||
| 60 | } | |||||
| 61 | ||||||
| 62 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.