codenode.java

来自「用java编写的压缩程序」· Java 代码 · 共 41 行

JAVA
41
字号
package compress;
import java.io.Serializable;
/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2007</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class CodeNode implements Serializable{//存储字符与编码
   public char cha = 21;//存字符
   public String code = "";//编码后的01码
    public CodeNode() {
    }
    public CodeNode(char cc,String ss) {
        this.cha=cc;
        this.code=ss;
    }
    public String getPath() {
        return this.code;
    }

    public void setPath(String st) {
        this.code = st;
    }

    public char getChar() {
        return this.cha;
    }

    public void setChar(char c) {
        this.cha = c;
    }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?