Manage input and ouput of trees using various formats or sources.