Source Code Cross Referenced for JETAObjectInput.java in  » Swing-Library » abeille-forms-designer » com » jeta » forms » store » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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 » Swing Library » abeille forms designer » com.jeta.forms.store 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package com.jeta.forms.store;
002:
003:        import java.io.IOException;
004:
005:        /**
006:         * An interface for reading primitives and objects from a persistent store. This
007:         * interface is similar to java.io.DataInputStream but is slightly modified to
008:         * support reading named primitives and objects (to support tagged formats such
009:         * as XML). For those formats that don't use tags (i.e. standard Java
010:         * serialization), the tag names are ignored.
011:         * 
012:         * @author Jeff Tassin
013:         */
014:        public interface JETAObjectInput {
015:
016:            /**
017:             * Helper method that simply forwards the call to read("version")
018:             */
019:            public int readVersion() throws IOException;
020:
021:            /**
022:             * Reads an integer with the specified name from the store.
023:             * 
024:             * @param tagName
025:             *            the name of the integer.
026:             * @return the integer value with the specified name. Zero is returned if a
027:             *         value is not found with specified name.
028:             */
029:            public int readInt(String tagName) throws IOException;
030:
031:            /**
032:             * Reads an integer with the specified name from the store.
033:             * 
034:             * @param tagName
035:             *            the name of the integer.
036:             * @param defaultValue
037:             *            if the value is not found, the default value is returned.
038:             * @return the integer value with the specified name (or the default value)
039:             */
040:            public int readInt(String tagName, int defaultValue)
041:                    throws IOException;
042:
043:            /**
044:             * Reads an object with the specified name from the store.
045:             * 
046:             * @param tagName
047:             *            the name of the object.
048:             * @return the object with the specified name. Null is returned if a value
049:             *         is not found with the specified name.
050:             */
051:            public Object readObject(String tabName)
052:                    throws ClassNotFoundException, IOException;
053:
054:            /**
055:             * Reads an String object with the specified name from the store.
056:             * 
057:             * @param tagName
058:             *            the name of the object.
059:             * @return the String with the specified name. Null is returned if a value
060:             *         is not found with the specified name.
061:             */
062:            public String readString(String string) throws IOException;
063:
064:            /**
065:             * Reads a boolean with the specified name from the store.
066:             * 
067:             * @param tagName
068:             *            the name of the boolean.
069:             * @return the boolean with the specified name. False is returned if a value
070:             *         is not found with the specified name.
071:             */
072:            public boolean readBoolean(String string) throws IOException;
073:
074:            /**
075:             * Reads a boolean with the specified name from the store.
076:             * 
077:             * @param tagName
078:             *            the name of the integer.
079:             * @param defaultValue
080:             *            if the value is not found, the default value is returned.
081:             * @return the boolean value with the specified name (or the default value)
082:             */
083:            public boolean readBoolean(String tagName, boolean defaultValue)
084:                    throws IOException;
085:
086:            /**
087:             * Reads a float with the specified name from the store.
088:             * 
089:             * @param tagName
090:             *            the name of the float.
091:             * @return the float with the specified name. Zero is returned if a value is
092:             *         not found with the specified name.
093:             */
094:            public float readFloat(String string) throws IOException;
095:
096:            /**
097:             * Reads a float with the specified name from the store.
098:             * 
099:             * @param tagName
100:             *            the name of the integer.
101:             * @param defaultValue
102:             *            if the value is not found, the default value is returned.
103:             * @return the float value with the specified name (or the default value)
104:             */
105:            public float readFloat(String tagName, float defaultValue)
106:                    throws IOException;
107:
108:            /**
109:             * Returns a JETAObjectInput instance for reading a super class of the
110:             * object that is currently being read. This is needed those storage formats
111:             * that don't automatically handle inheritance (i.e. XML). Java
112:             * Serialization handles this automatically, so this is a no-op method and
113:             * simply returns the same JETAObjectInput instance.
114:             */
115:            public JETAObjectInput getSuperClassInput();
116:
117:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.