001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.util;
016    
017    /**
018     * @author Brian Wing Shun Chan
019     */
020    public class UnicodeFormatter_IW {
021            public static UnicodeFormatter_IW getInstance() {
022                    return _instance;
023            }
024    
025            public java.lang.String bytesToHex(byte[] bytes) {
026                    return UnicodeFormatter.bytesToHex(bytes);
027            }
028    
029            public java.lang.String byteToHex(byte b) {
030                    return UnicodeFormatter.byteToHex(b);
031            }
032    
033            public char[] byteToHex(byte b, char[] hexes) {
034                    return UnicodeFormatter.byteToHex(b, hexes);
035            }
036    
037            public char[] byteToHex(byte b, char[] hexes, boolean upperCase) {
038                    return UnicodeFormatter.byteToHex(b, hexes, upperCase);
039            }
040    
041            public java.lang.String charToHex(char c) {
042                    return UnicodeFormatter.charToHex(c);
043            }
044    
045            public byte[] hexToBytes(java.lang.String hexString) {
046                    return UnicodeFormatter.hexToBytes(hexString);
047            }
048    
049            public java.lang.String parseString(java.lang.String hexString) {
050                    return UnicodeFormatter.parseString(hexString);
051            }
052    
053            public java.lang.String toString(char[] array) {
054                    return UnicodeFormatter.toString(array);
055            }
056    
057            public java.lang.String toString(java.lang.String s) {
058                    return UnicodeFormatter.toString(s);
059            }
060    
061            private UnicodeFormatter_IW() {
062            }
063    
064            private static UnicodeFormatter_IW _instance = new UnicodeFormatter_IW();
065    }