standard (For example, PC Camera and TV tuner with. WDM driver) ..... You may
wish to add segments from your favorite TV programs ...... DV play/pause.
Jun 1, 2001 ... you want to gain a deeper understanding of the Java programming language? ...
Featuring fifty-seven valuable rules of thumb, Effective Java ...
PDF Download Java: 2017 Ultimate Beginners Guide to Learn Java Programming ( java for dummies, java apps, java for begin
Mar 18, 2017 - Developers, Coding, CSS, PHP) (Volume 1) read online Kindle ... programming language can seem like ... sy
PDF Java: 2017 Ultimate Beginners Guide to Learn Java Programming ( java for dummies, java apps, java for beginners, jav
Including proven steps to learn the essentials of Java Programming. ... in mind and can be used to develop almost all ki
106. Advanced Java Programming. Instructor's Guide. 2. Revision Notes.
Revision 5.0 broadly updates and rearranges the course with the primary aim of.
Jun 1, 2001 - the examples, you may have to add one or both of these import ..... A unifying theme underlies this Item a
Examples: Running a Java program. . . . . . 5. Accessing databases . . . . . . . . . . .
12. Accessing database properties . . . . . . . 12. Locating a database on a server ...
The JDK is an SDKâa software development kit that includes tools used ..... The Java API is the application programmin
1. GLG Programming Tutorial for Java. Overview. The GLG Toolkit provides a 100
% pure Java class library that allows the user to load, display and animate GLG ...
VMware vCloud Suite SDK for Java Programming Guide. 2. VMware, Inc. You
can find the most up-to-date technical documentation on the VMware Web site at:
.
Each Java program we will write will be stored in its own project. From the ... If
you are starting a brand new Java project without any initial program code:.
Using Eclipse for Java Programming. NOTE: Before using Eclipse for the first time
, create a folder on your desktop named MyWorkspace. This folder will be used ...
Jun 14, 2009 - the return type of the frac method, the type could either stay the same as .... r = r.ring() return n def base(self): r = self.factory() while isinstance(r ...
Where to buy CyberLink PowerDVD 16 Pro online cheap, and we also ensure it is easy to locate and read through ... locate
Java® Programming for Android™ Developers For Dummies®. Published by:
John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030-5774, www.wiley.
cross hairs and grid lines/TV safe zone (if enabled) are visible to help with the
placement of the ... Note: to use a connected monitor or TV as a secondary
preview window, you must first enable extend ...... Space bar. DV play/pause
preview ...
GUI indicates Graphics User Interface, which contrasts with the ... problems in
programming GUI. ▫ For GUI programming in Java, we can use AWT (Abstract.
Have You Been Thinking Seriously About Digging into Programming? Are You Tired of Your Java Code Turning Out Wrong? Yes,
like perhaps a Mars rover, or a better cell phone, or... you name it, then you couldn't possibly do it ...... If it is not in your dock, you can find it under Ap- plications.
JAVA-PROGRAMMING/CODING STYLE. A program may produce correct outputs
for each input, but that has nothing to do with the program being ...
CyberLink for Java Programming Guide V1.3. 1 Introduction. UPnP™*1
architecture is based on open networking to enable discovery and control of
networked ...
Class Overview.......................................................................................................................................... 3
Service ....................................................................................................................................................... 7
3.7
Control ....................................................................................................................................................... 8
Control Point.................................................................................................................................................... 11 4.1
Class Overview........................................................................................................................................ 11
Control ..................................................................................................................................................... 14
Overriding HTTP Service ........................................................................................................................ 18
6.2
Using your XML Parser........................................................................................................................... 19
Transitioning From Version 1.2 ....................................................................................................................... 20 7.1
UPnP™*1 architecture is based on open networking to enable discovery and control of networked devices and services, such as media servers and players at home.
UPnP™ architecture is based on many standard protocols, such as GENA, SSDP, SOAP, HTTPU and HTTP. Therefore you have to understand and implement these protocols to create your devices of UPnP™.
CyberLink for Java is a development package for UPnP™ developers. CyberLink controls these protocols automatically, and supports to create your devices and control points quickly.
Please see the following site and documents to know about UPnP™ in more detail.
The current package needs the following package to parse the XML and SOAP requests. CyberLink uses the Xerers package as the default parser. Therefore you don’t have to install the KXML2 package if you want to use it. Package
URL
Apache Xerces
http://xml.apache.org/xerces2-j/index.html
kXML2
http://www.kxml.org/
(2)
CyberGarage
3
CyberLink for Java Programming Guide V1.3
Device
3.1 Class Overview The following static structure diagram is related classes of CyberLink to create your device of UPnP™. The device has some embedded devices and services, and the services have some actions and state variables. Device +getDeviceType() +getFriendlyName() +getModelName() +getModelNumber() +getUDN() +start() +stop() +getDeviceList() +getDevice() +getServiceList() +getService() +getIconList() +getIcon() +getAction() +getStateVariable() +isRootDevice() +announce() +byebye() 1
The above static structure diagram is modified simplify to explain. See the JavaDoc documentation to know other methods and variables in more detail.
(3)
CyberGarage
CyberLink for Java Programming Guide V1.3
3.2 Description At first, you have to make some description files of your devices and the services when you want to create your UPnP™ device. The URLs in the device description should be relative locations from the directory of the device description file.
The description of the root device should not have URLBase element because the element is added automatically when the device is created using the description. The service descriptions is required to create a device, but the presentationURL and the iconList are recommended option. Please see UPnP™ specifications about the description format in more detail.
3.3 Initiating To create a UPnP™ device, create a instance of Device class with the root description file. The created device is a root device, and only root device can be active using Device::start(). The device is announced to the UPnP™ network when the device is started. The following shows an example of the initiating device. import org.cybergarage.upnp.*; import org.cybergarage.upnp.device.*; …… String descriptionFileName = "description/description.xml"; Try { Device upnpDev = new Device(descriptionFileName); ……
The InvalidDescriptionException is occurred when the description is invalid. Use the getMessage() to know the exception reason in more detail. The active root device has some server processes, and returns the responses automatically when a control points sends a request to the device. For example, the device has a HTTP server to return the description files when a control point gets the description file. The device searches an available port for the HTTP server automatically on the machine when the device is started.
Device
Control Point SOAP
Control
HTTP
Description
HTTPMU
Notify/Search
HTTPU
Search Response
GENA
Event
The root device is created with the following default parameters, you can change the parameters using the following methods before the root device is started. Parameter
Default
Method
Detail
1 HTTP port
4004
setHTTPPort()
The http server uses the port in the root device.
2 Description URI
/description.xml setDescriptionURI() The description URI of the root device.
3 Lease time
1800
setLeaseTime()
(5)
The lease time of the root device.
CyberGarage
CyberLink for Java Programming Guide V1.3
3.4 Notify Your device is announced using Device::start() to the UPnP™ network using a notify message with ssdp::alive automatically when the device is started. When device is stopped using Device::stop(), a notify message is posted with ssdp::byebye. You can announce the notify messages using Device::announce() and Device::byebye().
Device dev .... ..... dev.start(); ..... dev.stop();
When a control point sends a search request with M-SEARCH to the UPnP™ network, the active device send the search response to the control point automatically. The device repeats the announce in the lease time automatically.
3.5 Embedded Devices The devices may have some embedded devices. Use Device::getDeviceList() to get the embedded device list. The following example outputs friendly names of all embedded devices in the device. public void printDevice(Device dev) { String devName = dev.getFriendlyName(); System.out.println(devName);
DeviceList childDevList = dev.getDeviceList(); int nChildDevs = childDevList.size(); for (int i=0; i