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