Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package jhuffman.def;
- import jhuffman.util.UTree;
- public class ITree
- {
- Node raiz = null;
- UTree utree = null;
- public void setRoot(Node root)
- {
- raiz = root;
- utree = new UTree(root);
- }
- public Node getRoot()
- {
- return raiz;
- }
- public Node next(ICode cod)
- {
- StringBuffer buf = new StringBuffer();
- Node aux = utree.next(buf);
- cod.fromString(buf.toString());
- return aux;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement