Code example for Charset

Methods: newDecoder, newEncoder

0
  private static final int STATE_UPDATE = 5;
 
  private static int mState = 0;
 
  public static Charset charset = Charset.forName("UTF-8");
  public static CharsetEncoder encoder = charset.newEncoder();
  public static CharsetDecoder decoder = charset.newDecoder();
  private static Member mMember;
 
  @SuppressWarnings("static-access") 
  public static void main(String[] args) throws IOException {
    mMember = new Member();
     
    IdangServer idangServer = new IdangServer();
    idangServer.Server();
  } 
 
  public static void Server() throws IOException { 
    ByteBuffer buffer = ByteBuffer.allocate(1024);
    Selector selector = Selector.open();