if (ansiControl) {  
                    if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z')  
                            || c == '"') {  
                        ansiControl = false;  
                    }  
                }  
            }  
            System.out.println(new String(sb.toString().getBytes(ORIG_CODEC),  
                    TRANSLATE_CODEC));  
        } catch (Exception e) {  
            e.printStackTrace();  
        }  
    } 
public void write(String s) {  
        try {  
            out.write(s.getBytes());  
            out.flush();  
            System.out.println(s);  
        } catch (Exception e) {  
        }  
    } 
public void write(String s, int sleep) {  
        write(s);  
        try {  
            Thread.sleep(sleep);  
        } catch (Exception e) {  
        }  
    }
    /** 
     * 完成之后必须关闭 
     */  
    public void close() {  
        if (out != null)  
            out.close();  
        if (in != null)  
            try {  
                in.close();  
            } catch (IOException e1) {  
            }  
        if (telnet != null)  
            try {  
                telnet.disconnect();  
            } catch (IOException e) {  
            }  
    }

