Source Code Cross Referenced for TimeZoneAdjustment.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » sdp » 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 » 6.0 JDK Modules » Java Advanced Imaging » javax.sdp 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        /*
02:         * TimeZoneAdjustment.java
03:         *
04:         * Created on January 9, 2002, 11:20 AM
05:         */
06:
07:        package javax.sdp;
08:
09:        import java.util.*;
10:
11:        /** A TimeZoneAdjustment represents the z= fields contained within a TimeDescription.
12:         * A TimeZoneAdjustment
13:         * specifies timezone changes which take place during or in between sessions 
14:         * announced in a session description.
15:         *
16:         * From RFC 2327:
17:         *
18:         *     To schedule a repeated session which spans a change from daylight- saving 
19:         * time to standard time or
20:         *     vice-versa, it is necessary to specify offsets from the base repeat times.
21:         * This is required because different
22:         *     time zones change time at different times of day, different countries change
23:         * to or from daylight time on
24:         *     different dates, and some countries do not have daylight saving time at all.
25:         *
26:         *     Thus in order to schedule a session that is at the same time winter and 
27:         * summer, it must be possible to
28:         *     specify unambiguously by whose time zone a session is scheduled. 
29:         * To simplify this task for receivers, we
30:         *     allow the sender to specify the NTP time that a time zone adjustment 
31:         * happens and the offset from the time
32:         *     when the session was first scheduled. The "z" field allows the sender to
33:         * specify a list of these adjustment
34:         *     times and offsets from the base time.
35:         *
36:         * Please refer to IETF RFC 2327 for a description of SDP.
37:         *
38:         * @author deruelle
39:         * @version 1.0
40:         */
41:        public interface TimeZoneAdjustment extends Field {
42:
43:            /** Returns a Hashtable of adjustment times, where:
44:             *          key = Date. This is the equivalent of the decimal NTP time value.
45:             *          value = Int Adjustment. This is a relative time value in seconds.
46:             * @param create to set
47:             * @throws SdpParseException
48:             * @return create - when true, an empty Hashtable is created, if it is null.
49:             */
50:            public Hashtable getZoneAdjustments(boolean create)
51:                    throws SdpParseException;
52:
53:            /** Sets the Hashtable of adjustment times, where:
54:             *          key = Date. This is the equivalent of the decimal NTP time value.
55:             *          value = Int Adjustment. This is a relative time value in seconds.
56:             * @param map Hashtable to set
57:             * @throws SdpException if the parameter is null
58:             */
59:            public void setZoneAdjustments(Hashtable map) throws SdpException;
60:
61:            /** Sets whether the field will be output as a typed time or a integer value.
62:             *
63:             *     Typed time is formatted as an integer followed by a unit character. 
64:             * The unit indicates an appropriate multiplier for
65:             *     the integer.
66:             *
67:             *     The following unit types are allowed.
68:             *          d - days (86400 seconds)
69:             *          h - hours (3600 seconds)
70:             *          m - minutes (60 seconds)
71:             *          s - seconds ( 1 seconds)
72:             * @param typedTime typedTime - if set true, the start and stop times will be
73:             * output in an optimal typed time format; if false, the
74:             *          times will be output as integers.
75:             */
76:            public void setTypedTime(boolean typedTime);
77:
78:            /** Returns whether the field will be output as a typed time or a integer value.
79:             *
80:             *     Typed time is formatted as an integer followed by a unit character.
81:             * The unit indicates an appropriate multiplier for
82:             *     the integer.
83:             *
84:             *     The following unit types are allowed.
85:             *          d - days (86400 seconds)
86:             *          h - hours (3600 seconds)
87:             *          m - minutes (60 seconds)
88:             *          s - seconds ( 1 seconds)
89:             * @return true, if the field will be output as a typed time; false, if as an integer value.
90:             */
91:            public boolean getTypedTime();
92:
93:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.