Charset.
Inheritance: FanObj
Exemple #1
0
 public static Buf toBuf(string self, Charset charset)
 {
     MemBuf buf = new MemBuf(self.Length*2);
       buf.charset(charset);
       buf.print(self);
       return buf.flip();
 }
Exemple #2
0
 public void charset(Charset charset)
 {
     m_out.charset(charset);
       m_in.charset(charset);
 }
Exemple #3
0
 public virtual void charset(Charset charset)
 {
     m_charsetEncoder = charset.newEncoder();
       m_charset = charset;
 }
Exemple #4
0
 protected OutStream()
 {
     m_charset = Charset.utf8();
       m_charsetEncoder = m_charset.newEncoder();
 }
Exemple #5
0
 internal DefaultEncoder(Charset charset)
 {
     this.charset = charset;
 }
Exemple #6
0
 //////////////////////////////////////////////////////////////////////////
 // UTF-8
 //////////////////////////////////////////////////////////////////////////
 public static Charset utf8()
 {
     if (m_utf8 == null) m_utf8 = new Utf8Charset();
       return m_utf8;
 }
Exemple #7
0
 protected InStream()
 {
     m_charset = Charset.utf8();
       m_charsetDecoder = m_charset.newDecoder();
       m_charsetEncoder = m_charset.newEncoder();
 }