< prev index next >

src/java.xml.ws/share/classes/com/sun/xml/internal/messaging/saaj/util/Base64.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 45,55 **** static private final int BASELENGTH = 255; static private final int LOOKUPLENGTH = 63; static private final int TWENTYFOURBITGROUP = 24; static private final int EIGHTBIT = 8; static private final int SIXTEENBIT = 16; - static private final int SIXBIT = 6; static private final int FOURBYTE = 4; static private final byte PAD = ( byte ) '='; static private byte [] base64Alphabet = new byte[BASELENGTH]; --- 45,54 ----
*** 242,252 **** 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64 }; public static String base64Decode( String orig ) { char chars[]=orig.toCharArray(); ! StringBuffer sb=new StringBuffer(); int i=0; int shift = 0; // # of excess bits stored in accum int acc = 0; --- 241,251 ---- 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64, 64 }; public static String base64Decode( String orig ) { char chars[]=orig.toCharArray(); ! StringBuilder sb=new StringBuilder(); int i=0; int shift = 0; // # of excess bits stored in accum int acc = 0;
< prev index next >