1 52 53 package com.go.trove.io; 54 55 import java.io.IOException ; 56 import java.io.UnsupportedEncodingException ; 57 58 65 public interface CharToByteBuffer extends ByteBuffer { 66 71 public void setEncoding(String enc) 72 throws IOException , UnsupportedEncodingException ; 73 74 80 public String getEncoding() throws IOException ; 81 82 85 public void append(char c) throws IOException ; 86 87 90 public void append(char[] chars) throws IOException ; 91 92 96 public void append(char[] chars, int offset, int length) 97 throws IOException ; 98 99 102 public void append(String str) throws IOException ; 103 104 108 public void append(String str, int offset, int length) throws IOException ; 109 110 113 public void drain() throws IOException ; 114 } 115 | Popular Tags |