330. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/11/2019 10:54:17 AM 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.

330.1 Files compared

# Location File Last Modified
1 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\util EncoderDecoderUtil.java Wed May 29 15:26:00 2019 UTC
2 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\util EncoderDecoderUtil.java Mon Jun 10 19:30:05 2019 UTC

330.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 136
Changed 1 2
Inserted 0 0
Removed 0 0

330.3 Comparison options

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

330.4 Active regular expressions

No regular expressions were active.

330.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** *********
  2    * Copyrii ght 2007 V HA. All ri ghts reser ved
  3    ********* ********** ********** ********** ********** ********** *********/
  4  
  5   package go v.va.med.f w.util;
  6  
  7   import org .apache.co mmons.code c.BinaryDe coder;
  8   import org .apache.co mmons.code c.BinaryEn coder;
  9   import org .apache.co mmons.code c.DecoderE xception;
  10   import org .apache.co mmons.code c.EncoderE xception;
  11   import org .apache.co mmons.lang .Validate;
  12   import org .springfra mework.ste reotype.Co mponent;
  13  
  14   import gov .va.med.fw .service.A bstractCom ponent;
  15  
  16   /**
  17    * Initial  javadoc f or class E ncoderDeco derUtil. T ODO - Add  content he re
  18    * 
  19    * Created  Apr 18, 2 007 2:59:3 3 PM
  20    * 
  21    * @author   DNS     DN S
  22    */
  23   @Component
  24   public cla ss Encoder DecoderUti l extends  AbstractCo mponent {
  25           pr ivate Bina ryEncoder  encoder;
  26           pr ivate Bina ryDecoder  decoder;
  27           
  28           pu blic Encod erDecoderU til() {
  29                    enco der = new  org.apache .commons.c odec.binar y.Base64() ;
  30                    deco der = new  org.apache .commons.c odec.binar y.Base64() ;
  31           }
  32  
  33           pu blic Strin g encode(b yte[] rawD ata) {
  34                    try  {
  35                             return  new Strin g(encoder. encode(raw Data));
  36                    } ca tch (Encod erExceptio n e) {
  37                             throw  new Illega lArgumentE xception(" Unable to  encode arg ument: " +  rawData);
  38                    }
  39           }
  40  
  41           pu blic byte[ ] decode(S tring enco dedData) {
  42                    try  {
  43                             return  decoder.d ecode(enco dedData.ge tBytes());
  44                    } ca tch (Decod erExceptio n e) {
  45                             throw  new Illega lArgumentE xception(" Unable to  decode arg ument: " +  encodedDa ta);
  46                    }
  47           }
  48  
  49           pu blic Binar yDecoder g etDecoder( ) {
  50                    retu rn decoder ;
  51           }
  52  
  53           pu blic void  setDecoder (BinaryDec oder decod er) {
  54                    this .decoder =  decoder;
  55           }
  56  
  57           pu blic Binar yEncoder g etEncoder( ) {
  58                    retu rn encoder ;
  59           }
  60  
  61           pu blic void  setEncoder (BinaryEnc oder encod er) {
  62                    this .encoder =  encoder;
  63           }
  64  
  65           pu blic void  afterPrope rtiesSet()  {
  66                    Vali date.notNu ll(encoder , "encoder  is null") ;
  67                    Vali date.notNu ll(decoder , "decoder  is null") ;
  68           }
  69   }