Here you can find the source of encodeTagChar(char c, Appendable buffer)
Parameter | Description |
---|---|
IOException | an exception |
private static void encodeTagChar(char c, Appendable buffer) throws IOException
//package com.java2s; //License from project: GNU General Public License import java.io.IOException; public class Main { /** encode a char in TSDB format and append it to a buffer * @throws IOException *//*w ww . ja va 2 s .c o m*/ private static void encodeTagChar(char c, Appendable buffer) throws IOException { String hex = Integer.toHexString(c); buffer.append('-'); for (int len = hex.length(); len < 4; len++) { buffer.append('0'); } buffer.append(hex); } }