util

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » Open Portal » util 
util
Java Source File NameTypeComment
AltSTokenizer.javaClass The Sun's StringTokenizer class modified to allow more extensive functionality.
BinaryTree.javaClass A binary tree enumerator.

Several methods directly manipulate the private current attribute which points at the enumerator's current position in the tree. Unlike many Enumerator implementations, this class doesn't permanently consume it's target, it can easily reset to the beginning or to arbitrary nodes in the tree.

The enumerator understands that it's root may be within a binary tree rather than being the actual root of a binary tree. Created in less restrictive times, this functionality may be deprecated in favor of subtree clones.

This class implements Enumeration, but adds features not in standard JDK enumeration classes.

Open Issues

  • Need toString() that will walk the tree according to the current enumeration type.
  • create methods that manipulate current do not take "stitching" into account, i.e.
BTreeNode.javaClass A binary tree node.

Structure. BTreeNodes and the BinaryTree enumeration are designed to allow for binary trees to be treated as though they had left-right children or next-child children. Relevant methods for each are visible; internally, left is treated as being equivalent to next and right is treated as being equivalent to child.

Visibility. A CLOSED node is visible to enumeration but it's children aren't. A node that is OPEN is fully visible to BinaryTree enumeration and the node's children are accessible, though they themselves may not be visible. LEFT/NEXT/RIGHT/CHILD implies the node itself is OPEN. BTreeNodes have a sense of their visibility in enumeration. If the node is LEFTVISIBLE or NEXTVISIBLE, enumeration will attempt to traverse only it's left or next child if they are visible. If the node is RIGHTVISIBLE or CHILDVISIBLE, enumeration will attempt to traverse only it's right or child child if they are visible. The default visibility is OPEN. Visibility restrictions can be circumvented with the getAll methods.

Terminal Policy. Terminal policy affects whether a node accepts expansion and in what way it accepts expansion. In other words, what kind of terminal it is. The policy values are the same as the visibility values and are used similarly. The default terminal policy is OPEN, meaning that either a right or left branch can be created. LEFTVISIBLE and NEXTVISIBLE allow only left (next) branches to be created. RIGHTVISIBLE and CHILDVISIBLE allow only right (child) branches to be created. CLOSED means no branches can be created. Currently, rejection based on terminal policy is silent.

Depth. BTreeNodes maintain a sense of their "depth". Both binary and unary depth are kept. Binary depth is the depth a node is in a left-right tree, unary depth is the depth a node is in a next-child tree, the difference being that the next reference doesn't cause depth to increment. Depth 0 nodes are root nodes.

Management. All alterations to the structure of a binary tree are expected to take place through the Enumeration class. While this class is public (compare with HashtableNode in the JDK util.Hashtable class) enough to be viewed and referenced, methods that alter the parent, left and right are restricted to the BinaryTree enumeration class to ensure the integrity of the enumeration.

Open Issues

  • Certain advanced operations (e.g., the deleting and inserting operations required by QueryNode) will require methods that are less or differently deterred by visibility.
  • Need to support clone() (done) plus Enumeration/Dictionary operations like: contains(), containsKey(), get() (done), keys().
Header.javaClass Header file for the utiladdenda package.
Key.javaClass A little piece of excess that defines constants for keys.
Messages.javaClass Messages file for the util package.
ReportError.javaClass Handle error reporting in a way that looks less catastrophic than exceptions typically do.
StopWatch.javaClass A stopwatch for doing timing stuff.
SysInfo.javaClass Encapsulate platform information.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.