Back to project page FlashTransmitter.
The source code is released under:
GNU General Public License
If you think the Android project FlashTransmitter listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.catinthedark.flash_transmitter.lib.algorithm; // w ww .j a v a 2s . co m /** * Created by Ilya on 15.04.2014. */ public interface EncodingScheme { /** * Convert each char form input string to byte. * @param str Input string. * @return Array of 'chars' in byte notation. */ public Byte[] getCodes(String str); /** * Convert array of 'char' codes into string. * @param codes Array of 'char' codes. * @return String. */ public String getSymbols(Byte[] codes); /** * Convert each char in bits. * @param str Input string. * @return Array of bits. */ public Byte[] getBitCodes(String str); /** * Convert array of bits in string depends on encoding scheme. * @param bitCodes Array of bits * @return String */ public String getSymbolsByBits(Byte[] bitCodes); }