Advertisement
Guest User

Untitled

a guest
Nov 14th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. package jhuffman.def;
  2.  
  3. import jhuffman.util.UTree;
  4.  
  5. public class ITree
  6. {
  7. Node raiz = null;
  8. UTree utree = null;
  9.  
  10. public void setRoot(Node root)
  11. {
  12. raiz = root;
  13. utree = new UTree(root);
  14. }
  15.  
  16. public Node getRoot()
  17. {
  18. return raiz;
  19. }
  20.  
  21. public Node next(ICode cod)
  22. {
  23.  
  24. StringBuffer buf = new StringBuffer();
  25. Node aux = utree.next(buf);
  26. cod.fromString(buf.toString());
  27. return aux;
  28. }
  29.  
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement