::. Contenuti della lezione *+ ') $ &,!!!$!-,.../- ' % + &
|
|
|
- Gabriel Thornton
- 10 years ago
- Views:
Transcription
1 ! ""#
2 ::. Contenuti della lezione $%&' % ('))')') *+ ') $ &,!!!$!-,.../- ' % + &
3 ::. Le diverse edizioni di Java: J2EE,J2SE,J2ME!" # " $
4 ::. Le diverse edizioni di Java: J2EE,J2SE,J2ME % & ' () * +, ( + -., / 0) * 1-
5 ::. Profili e Configurazioni!"!# "! $%!& ' #( )"& % #( * + *+,-.../
6 ::. Profili e Configurazioni!$/0&2 1 *2-, 1$34#,5(6-7,34 $34#,5(6-7,34. 63#,02 /'0&)"$%1&/' *$1 1 ')* 1
7 ::. Profili e Configurazioni CLDC Mobile phones PDS. KVM (160k-512k) CDC Set-top boxes Personal video recorders. CVM (512k-2MB) Native Operating System
8 ::. CDC vs. CLDC 0 0 '82 $01$/ $1$ $1$$01$ '82 ) 0 #()0
9 ::. Configurazione CLDC (JSR 139)!! " #$%$&'()"* 0) * 2 %& # +
10 ::. Configurazione CLDC (JSR 139), -,. / 01 01'4,'4, %!& ++23 (molte classi derivate da Java.lang.error non esistono) 45 6,
11 ::. Configurazione CLDC (JSR 139) -. 0 #778 / *, !,3 -: +')* $01$ '
12 ::. Configurazione CLDC (JSR 139) /9 6:!
13 ::. Configurazione CDC (JSR 218)! 3 $) ;$);1* 2') *",%& java.lang" + "#$! "%! 1- +; ++ +!< + ),
14 ::. Configurazione CDC (JSR 218) + <-<=+. 2 0<=+ 6"<= (, 2 $ ;5 4 5(,?7+57@ *& 0<=+: 5(,7 + -=7 &' (" >)5, >! &' (" ;<=+:, 2-5(, ( )!!!
15 ::. Configurazione CDC (JSR 218) / $*09 9 public static void main(string[] args) MainAppClass #*java MainAppClass
16 ::. Configurazione CDC (JSR 218) /6632 = > )5 A,B! = C 8,! D7*0 ')* C 0')* *-$ + 0)/ <=+? -> 2.
17 ::. Configurazione CDC (JSR 218) A 5(,,4/ +E -=7 F +!! (*)! 5 ;* 0; 6*,6*,
18 ::. I profili: Foundation Profile (JSR 219) $1$ % & #,3 45(, 6: java.io, java.lang, java.lang.ref, java.lang.reflect, java.math, java.net, java.security, java.security.acl, java.security.cert, java.security.interfaces, java.security.spec, java.text, java.util, java.util.jar, java.util.zip, javax.microedition.io ('82 5$#!
19 ::. I profili: Personal Basis Profile (JSR 217) $1$ %& #, -=7 #'B ; 6: java.awt, java.awt.color, java.awt.event, java.awt.image java.beans java.rmi, java.rmi.registry javax.microedition, javax.microedition.xlet.ixc java.applet G # 2 2 ;
20 ::. I profili: Personal Profile (JSR 216) $1$ %&, -=7 '%<& '
21 ::. I profili: Mobile Information Device (JSR 118) (,+ + +G 2 D =702 = 7 0<2<+ $HIJK - <! *2+ +G
22 //*, /+ 2$1$$10$$1$AJA+$01$AA 1=! +0;;LM+=! $+0;-6*+32+ );= +G 0$ 2"! (, #!!! )- 5$$./ 0 *AA ' 23
23 //*, /+)B 2$1$$10$$1$AJA+$01$AA 1=! +0;;LM+=! $+0;-6*+32+ );= +G 0 -',7',7-37$-37 *AA$1$ * ')*$01$ 1*.!!2 5$%&! 3 +! 4) "!)!
24 //*, / 4 + 2$1$ 1=! $+0;;LM+0;-6* 0$0 $',7 5$5 *AA ' 23 2'4,'4,+') *1,')*1,+') *,')*, > ')* 5(6#!!!!7$.8
25 //*, / (, -(,. ) *$01$ AJ 10; <4 0$0 $',7-37 5$5 * ')* 1 ) * IJF LJ@B # 0' A8L@B6-* '4,
26 //*, / 4 + ) *$01$ AA 10;- ;LM+2<4 0$0 $',7% &+D $5 * ')*, 0')*+ : >
27 //*, / 4 + 2:,A C 2%:& 0 )* * 23, * 6 :
28 ::. Application Models: MidLet, 0*0/ /!!! - 9 * 2: > + *0 0*0/ / %& 5$ 0*0> -$7,)
29 ::. Ciclo di sviluppo di una MidLet,-H07/ : ' #* F '8*N $* 6?, F $01$ D* 6: F *0 + N +'-1 E* 2 F *0
30 ::. Java Application Descriptor (JAD) $O+ O!O!,'-19'-6 +*,1 > +< > *,1 '-6!+ + '-1,'-1/ $: *,14 *,1) *,1) *,1 *,1'(60
31 ::. Java Application Descriptor (JAD) MIDlet-Version: MIDlet-Vendor: Totore Consulting MIDlet-Jar-URL: MicroEdition-Configuration: CLDC-1.1 MicroEdition-Profile: MIDP-2.0 MIDlet-1: Demo1, /image/img1.png, org.mobilab.midlets.helloworld MIDlet-Jar-Size: MIDlet-Name: HelloWorld
32 ::. Sviluppo MIDP: Elementi Base 3*0 javax.microedition.midlet.midlet, 9-*2++ *0 (*0 void startapp() void pauseapp() void destroyapp(boolean unconditional)
33 ::. Application Models: MidLet import javax.microedition.midlet.*; *-! -*2F - *2< 09-*2 + public class BasicMIDlet extends MIDlet { public BasicMIDlet() { // constructor - don't do much here } protected void destroyapp(boolean unconditional) throws MIDletStateChangeException { // the system destroys the MIDlet } protected void pauseapp() { // the system pauses the MIDlet } } protected void startapp() throws MIDletStateChangeException { // the system activates the MIDlet }
34 ::. Application Models: MidLet getproperty 5 9!! " ( 6 *0resumeRequest 5"$':!!9 +! $!5!!" * *0notifyPaused 1*0notifyDestroyed
35 ::. NetBeans ) " 0$110 5;!*;!',,*' 7! 1> 5F GFF1 ( ' '8*-3 5(' 4!( (' 4!(5 669 ) * (60!
36 ::. NetBeans /!(, 3 "! '!4 &- 0<.! "#! =! 1->?'! 7!* "#'@1-=#A
37 ::. NetBeans Screen Designer 65 9 : : ; 6 =+ 9 H
38 ::. NetBeans Flow Designer "
39 ::. NetBeans Source Editor? < -. 3
40 ::. NetBeans Configurazione Emulatore $ 9*9$1$ ($3 $1$$01$ - 9< 9!
41 ::. NetBeans Esecuzione I5" 0$4&- 0<. 6 0$4&- 00 '73 1-B?8C! (D$#(
42 ::. Applicazioni di rete con J2ME 0!1 2,0!1- ' % *.3+45+,'67-
43 ::. Generic Connection Framework (GCF) H 4+ 2*2**2 B =# (*72 7$+(1+67+GG D77+D772+#7+G
44 ::. Generic Connection Framework (GCF) H '8*!:,3 9 9,3 /! %5& 7!/ <303; ;3> 1;( $01$ AJ,5$#/ $1$+. '82'26AKP
45 ::. Generic Connection Framework (GCF) J <9K 9,3! -E! #-, - 8 <7; 2* 2 $ B 2
46 ::. Generic Connection Framework (GCF) + :! <+ 3 #! (! 9"!! = ; -=;.!!+
47 ::. Generic Connection Framework (GCF) <+
48 ::. Generic Connection Framework (GCF) + 6 Connection, DatagramConnection F,61 (1+7$ InputConnection+OutputConnection F,61 2 StreamConnection F $ ContentConnection F 2StreamConnection+ StreamConnectionNotifier ( Connector F#<,(60 (60
49 ::. Generic Connection Framework (GCF) 3 H <9 L 4226 M)N 0 O 5:*I :
50 ::. Generic Connection Framework (GCF) =; 26#$APCL8CKM F,5$# F + 65 F!+ F #?14,: (60 F +?F % &,>
51 ::. Generic Connection Framework (GCF) < -#FE. import java.io.*; import javax.microedition.midlet.*; import javax.microedition.io.*; import javax.microedition.lcdui.*; public class GCFConn extends MIDlet { private Display display; private String url = " public GCFConn() { display = Display.getDisplay(this); } public void startapp() { try { downloadpage(url); } catch(ioexception e) { alert = new Alert(message,e.toString(), null, AlertType.WARNING); alert.settimeout(alert.forever); display.setcurrent(alert); } } [CONTINUA...]
52 ::. Generic Connection Framework (GCF) < -$FE. private void downloadpage(string url) throws IOException { StringBuffer b = new StringBuffer(); StringBuffer h = new StringBuffer(); String hf = ""; // not null InputStream is = null; HttpConnection c = null; TextBox t = null; try { long len = 0 ; int ch = 0; c = (HttpConnection)Connector.open(url); is = c.openinputstream(); // Fetch the HTTP Header for (int i = 0 ; hf!= null; i++) { hf = c.getheaderfieldkey(i); h.append(i+": "+hf); hf = c.getheaderfield(i); if (hf!= null && hf!= "") h.append("="+hf+"\n"); } [CONTINUA...]
53 ::. Generic Connection Framework (GCF) < -DFE. [CONTINUA METODO downloadpage] len = c.getlength(); if ( len!= -1) { // Read exactly Content-Length bytes for (int i =0 ; i < len ; i++ ) if ((ch = is.read())!= -1) b.append((char) ch); } else { // Read till the connection is closed. while ((ch = is.read())!= -1) { len = is.available() ; b.append((char)ch); } } } [CONTINUA...]
54 ::. Generic Connection Framework (GCF) < -EFE. [CONTINUA METODO downloadpage] // Dump file data to the device screen t = new TextBox("hello again...",h.tostring()+b.tostring(),2048,0); // Dump file data to ktoolbar System.out.println("Headers"); System.out.println(h.toString()); System.out.println("Body"); System.out.println(b.toString()); } finally { is.close(); c.close(); } display.setcurrent(t); } } public void pauseapp() {} public void destroyapp(boolean unconditional) {}
55 ::. Java APIs for Bluetooth (JSR-82) -,+ B' 0 ' B '26L8/ 8 1) javax.bluetooth 4-,B 2) javax.obex -, %3N;& QBR
56 ::. Java APIs for Bluetooth (JSR-82) ;M $ B,'8*$01$ 6: B 5-21<- 2 21< -6. 6#:<$3** -; $- -$6. B$$-).
57 ::. Java APIs for Bluetooth (JSR-82) 6+;?%$ 6B 6 2 6#$3**+08$-3BH,3 5 #% <& : 3'4 -,
58 ::. Java APIs for Bluetooth (JSR-82) ) 0'B> M #* + : $* < D* ; E* ; &* ; '*
59 ::. Java APIs for Bluetooth (JSR-82) + : :) H A :) M M A J -). + ( ::: 6+ ) ;?%$ -!!! : 6+A
60 ::. Java APIs for Bluetooth (JSR-82) < 3 ;!!!!... // retrieve the local Bluetooth device object LocalDevice local = LocalDevice.getLocalDevice(); // retrieve the Bluetooth address and name of the local device String address = local.getbluetoothaddress(); String name = local.getfriendlyname();... ; : ::... // retrieve the device that is at the other end of the Bluetooth connection RemoteDevice remote = RemoteDevice.getRemoteDevice(Connection c); // retrieve the Bluetooth address and name of the remote device String remoteaddress = remote.getbluetoothaddress(); String remotename = local.getfriendlyname(true);...
61 ::. Java APIs for Bluetooth (JSR-82) ;-#F$. + /J 0M ;DiscoveryAgent A DiscoveryListener DiscoveryAgent - startinquiry. 1 M devicediscovered A DiscoveryListener inquirycompleted DiscoveryListener DiscoveryAgent!! A +!! +!
62 ::. Java APIs for Bluetooth (JSR-82) ;-$F$. 3,+3+0I=+;P... // retrieve the discovery agent DiscoveryAgent agent = local.getdiscoveryagent(); // place the device in inquiry mode boolean complete = agent.startinquiry();... ;3=63; , // retrieve the discovery agent DiscoveryAgent agent = local.getdiscoveryagent(); // return an array of pre-known devices RemoteDevice[] devices = agent.retrievedevices(discoveryagent.preknown); //usare CACHED per //risultati inquiries precedenti...
63 ::. Java APIs for Bluetooth (JSR-82) ; J M + DiscoveryAgent /6+;?%$
64 ::. Java APIs for Bluetooth (JSR-82) ; J ) #* $* "! -)). D* ; + / ) ; ))
65 ::. Java APIs for Bluetooth (JSR-82) ) 0'26L8 $6F 0B 9 : 9 A *;; < ;91 F 628C8B+ 08$- 1)3@ = BS
66 ::. Java APIs for Bluetooth (JSR-82) 6 6 -#F$. ;91$6 3 -;?$D$. # ;91 G'7! ;91 = )QGD7;91-1#L 1D7. = Q ;91
67 ::. Java APIs for Bluetooth (JSR-82) 6 6 -$F$. ; / =; * =; ) ; - N. 3=;/ btspp:// a1b1c1d1e100:5 Proto Address Port (porta COM)
68 ::. Java APIs for Bluetooth (JSR-82) #F$.?... // service URL String ServiceURL = "btspp://localhost: a1b1c1de100;name=spp Server1"; try { // create a server connection StreamConnectionNotifier notifier = (StreamConnectionNotifier) Connector.open(serviceURL); // accept client connections StreamConnection connection = notifier.acceptandopen(); // prepare to send/receive data byte buffer[] = new byte[100]; String msg = "hello there, client"; InputStream is = connection.openinputstream(); OutputStream os = connection.openoutputstream(); // send data to the client os.write(msg.getbytes()); // read data from client is.read(buffer); connection.close(); } catch(ioexception e) { e.printstacktrace(); }...
69 ::. Java APIs for Bluetooth (JSR-82) $F$.?... // (assuming we have the service record) // use record to retrieve a connection URL String url = record.getconnectionurl( record.noauthenticate_noencrypt, false); // open a connection to the server StreamConnection connection = (StreamConnection) Connector.open(url); // Send/receive data try { byte buffer[] = new byte[100]; String msg = "hello there, server"; InputStream is = connection.openinputstream(); OutputStream os = connection.openoutputstream(); // read data from the server is.read(buffer); // send data to the server os.write(msg.getbytes); connection.close(); } catch(ioexception e) { e.printstacktrace(); }...
Mobile application development J2ME U N I T I I
Mobile application development J2ME U N I T I I Overview J2Me Layered Architecture Small Computing Device requirements Run Time Environment Java Application Descriptor File Java Archive File MIDlet Programming
MIDlet development with J2ME and MIDP
MIDlet development with J2ME and MIDP ibm.com/developerworks Table of Contents If you're viewing this document online, you can click any of the topics below to link directly to that section. 1. Introduction...
Introduction to Mobile Phone. Programming in Java Me
Introduction to Mobile Phone Programming in Java Me (prepared for CS/ECE 707, UW-Madison) Author: Leszek Wiland and Suman Banerjee 1 Content 1. Introduction 2. Setting up programming environment 3. Hello
Tutorial: Development of Interactive Applications for Mobile Devices
Tutorial: Development of Interactive Applications for Mobile Devices 7th International Conference on Human Computer Interaction with Mobile Devices and Services (Mobile HCI 2005) (Media Informatics Group,
Mobile Application Development
Mobile Application Development Development Process and Portability Christoph Denzler University of Applied Sciences Northwestern Switzerland Institute for Mobile and Distributed Systems Learning Target
JSR 82 BT APIs Prof. Dr. S. Heiss / 1. Bluetooth. JSR 82 Java APIs for Bluetooth Wireless Technology
Prof. Dr. S. Heiss / 1 Bluetooth JSR 82 Java APIs for Bluetooth Wireless Technology Prof. Dr. S. Heiss / 2 JSR 82 Bluetooth APIs Umfangreiche Spezifikation unter: http://jcp.org/en/jsr/detail?id=82 JSR
javax.bluetooth java.obex (optional) Fakulta elektrotechniky a informatiky - Rygol Lukáš
javax.bluetooth java.obex (optional) Fakulta elektrotechniky a informatiky - Rygol Lukáš The Bluetooth wireless cennectivity technology was originally envisioned in 1994 by the Swedish phone equipment
An Overview of Java. overview-1
An Overview of Java overview-1 Contents What is Java Major Java features Java virtual machine Java programming language Java class libraries (API) GUI Support in Java Networking and Threads in Java overview-2
Development of Java ME
Y39PDA Development of Java ME application České vysoké učení technické v Praze Fakulta Elektrotechnická Content What is Java ME Low Level a High Level API What is JSR LBS Java ME app. life-cycle 2/29 Is
Mobile Software Application Development. Tutorial. Caesar Ogole. April 2006
Mobile Software Application Development Tutorial By Caesar Ogole April 2006 About the Tutorial: In this tutorial, you will learn how to build a cross-platform mobile software application that runs on the
Java Platform, Micro Edition (Java ME) Mokoena F.R. The 7046 Team
Java Platform, Micro Edition (Java ME) Mokoena F.R The 7046 Team 1. Introduction Java Platform, Micro Edition (Java ME) technology is one of the popular mobile application runtime. It provides developers
J2ME: Step by step. Presented by developerworks, your source for great tutorials ibm.com/developerworks
J2ME: Step by step Presented by developerworks, your source for great tutorials Table of Contents If you're viewing this document online, you can click any of the topics below to link directly to that
private byte[] encryptcommand = {(byte)0xa0, (byte)0xc1, (byte)0x00, (byte)0x00, (byte) 0x00};
/* *Utilisation des Java Card (U)SIM pour la sécurisation des communications et des données dans les applications sur téléphones mobiles Cette midlet est chargée de proposer une interface à l'utilisateur
Building a Multi-Threaded Web Server
Building a Multi-Threaded Web Server In this lab we will develop a Web server in two steps. In the end, you will have built a multi-threaded Web server that is capable of processing multiple simultaneous
Socket-based Network Communication in J2SE and J2ME
Socket-based Network Communication in J2SE and J2ME 1 C/C++ BSD Sockets in POSIX POSIX functions allow to access network connection in the same way as regular files: There are special functions for opening
Network Communication
Network Communication Outline Sockets Datagrams TCP/IP Client-Server model OSI Model Sockets Endpoint for bidirectional communication between two machines. To connect with each other, each of the client
Programmation Orientée Objets. et langage Java
Programmation Orientée Objets et langage Java Programmation procédurale Construire(Maison m){ creuser(fouilles); commander(béton) couler(fouilles); commander(parpaings); while(!fini(sous-sol)){poser(parpaings);
Question1-part2 What undesirable consequences might there be in having too long a DNS cache entry lifetime?
CSCI 312 - DATA COMMUNICATIONS AND NETWORKS FALL, 2014 Assignment 4 Working as a group. Working in small gruops of 2-4 students. When you work as a group, you have to return only one home assignment per
1 Mobile and Ubiquitous User Interfaces
1 Mobile and Ubiquitous User Interfaces 2.1 Mobile Computing 2.2 Input and Output on Mobile Devices 2.3 Design Guidelines for Mobile Devices 2.4 System Architectures for Mobile Devices 2.5 Example Applications
! "# $%&'( ) * ).) "%&' 1* ( %&' ! "%&'2 (! ""$ 1! ""3($
! "# $%&'( ) * +,'-( ).) /"0'" 1 %&' 1* ( %&' "%&'! "%&'2 (! ""$ 1! ""3($ 2 ', '%&' 2 , 3, 4( 4 %&'( 2(! ""$ -5%&'* -2%&'(* ) * %&' 2! ""$ -*! " 4 , - %&' 3( #5! " 5, '56! "* * 4(%&'(! ""$ 3(#! " 42/7'89.:&!
Network/Socket Programming in Java. Rajkumar Buyya
Network/Socket Programming in Java Rajkumar Buyya Elements of C-S Computing a client, a server, and network Client Request Result Network Server Client machine Server machine java.net Used to manage: URL
Java Network. Slides prepared by : Farzana Rahman
Java Network Programming 1 Important Java Packages java.net java.io java.rmi java.security java.lang TCP/IP networking I/O streams & utilities Remote Method Invocation Security policies Threading classes
Chapter 2 Introduction to Java programming
Chapter 2 Introduction to Java programming 1 Keywords boolean if interface class true char else package volatile false byte final switch while throws float private case return native void protected break
APPLICATION PROGRAMMING - MOBILE COMPUTING Mobile Computing
ROZWÓJ POTENCJAŁU I OFERTY DYDAKTYCZNEJ POLITECHNIKI WROCŁAWSKIEJ Wrocław University of Technology Internet Engineering Marek Piasecki APPLICATION PROGRAMMING - MOBILE COMPUTING Mobile Computing Wrocław
2 Categories of Constraints
Categories of Constraints In an attempt to find out what kind of constraints are typical for object-oriented libraries and application frameworks, we have searched the Java. API documentation [Sun Microsystems,
DESIGNING SHIFT CALENDAR FOR MOBILE PHONE
Bachelor's thesis Degree program Information technology 2010 Maamar zeddek DESIGNING SHIFT CALENDAR FOR MOBILE PHONE BACHELOR S THESIS ABSTRACT TURKU UNIVERSITY OF APPLIED SCIENCES Degree programme Infomation
Communicating with a Barco projector over network. Technical note
Communicating with a Barco projector over network Technical note MED20080612/00 12/06/2008 Barco nv Media & Entertainment Division Noordlaan 5, B-8520 Kuurne Phone: +32 56.36.89.70 Fax: +32 56.36.883.86
When the transport layer tries to establish a connection with the server, it is blocked by the firewall. When this happens, the RMI transport layer
Firewall Issues Firewalls are inevitably encountered by any networked enterprise application that has to operate beyond the sheltering confines of an Intranet Typically, firewalls block all network traffic,
Tutorial Reference Manual. Java WireFusion 4.1
Tutorial Reference Manual Java WireFusion 4.1 Contents INTRODUCTION...1 About this Manual...2 REQUIREMENTS...3 User Requirements...3 System Requirements...3 SHORTCUTS...4 DEVELOPMENT ENVIRONMENT...5 Menu
Assignment 4 Solutions
CSCI 312 - DATA COMMUNICATIONS AND NETWORKS FALL, 2014 Assignment 4 Solutions Working as a pair Working in pairs. When you work as a pair you have to return only one home assignment per pair on a round.
JAVA - FILES AND I/O
http://www.tutorialspoint.com/java/java_files_io.htm JAVA - FILES AND I/O Copyright tutorialspoint.com The java.io package contains nearly every class you might ever need to perform input and output I/O
Application Development with TCP/IP. Brian S. Mitchell Drexel University
Application Development with TCP/IP Brian S. Mitchell Drexel University Agenda TCP/IP Application Development Environment Client/Server Computing with TCP/IP Sockets Port Numbers The TCP/IP Application
Java from a C perspective. Plan
Java from a C perspective Cristian Bogdan 2D2052/ingint04 Plan Objectives and Book Packages and Classes Types and memory allocation Syntax and C-like Statements Object Orientation (minimal intro) Exceptions,
Learning Outcomes. Networking. Sockets. TCP/IP Networks. Hostnames and DNS TCP/IP
CP4044 Lecture 7 1 Networking Learning Outcomes To understand basic network terminology To be able to communicate using Telnet To be aware of some common network services To be able to implement client
AVRO - SERIALIZATION
http://www.tutorialspoint.com/avro/avro_serialization.htm AVRO - SERIALIZATION Copyright tutorialspoint.com What is Serialization? Serialization is the process of translating data structures or objects
5. More on app development
5. More on app development Some other mobile development systems MIDP Java Maemo Android iphone Windows Mobile OpenMoko Commonly used implementation techniques Summary Mobile Java (MIDP in particular)
Introduction to Java. Module 12: Networking (Java Sockets) Prepared by Costantinos Costa for EPL 233. ΕΠΛ233 Αντικειμενοστρεφής Προγραμματισμός 1
Introduction to Java Module 12: Networking (Java Sockets) Prepared by Costantinos Costa for EPL 233 ΕΠΛ233 Αντικειμενοστρεφής Προγραμματισμός 1 What Is a Socket? A socket is one end-point of a two-way
Java Programming Fundamentals
Lecture 1 Part I Java Programming Fundamentals Topics in Quantitative Finance: Numerical Solutions of Partial Differential Equations Instructor: Iraj Kani Introduction to Java We start by making a few
Consuming a Web Service(SOAP and RESTful) in Java. Cheat Sheet For Consuming Services in Java
Consuming a Web Service(SOAP and RESTful) in Java Cheat Sheet For Consuming Services in Java This document will provide a user the capability to create an application to consume a sample web service (Both
ExempleRMI.java. // Fichier de defintion des droits et proprietes // System.setProperty("java.security.policy","../server.java.
ExempleRMI.java import java.lang.*; import java.rmi.registry.*; import java.rmi.server.*; import java.io.*; import java.util.*; ExempleRMI.java import pkgexemple.*; public class ExempleRMI public static
JAVA Program For Processing SMS Messages
JAVA Program For Processing SMS Messages Krishna Akkulu The paper describes the Java program implemented for the MultiModem GPRS wireless modem. The MultiModem offers standards-based quad-band GSM/GPRS
Mail User Agent Project
Mail User Agent Project Tom Kelliher, CS 325 100 points, due May 4, 2011 Introduction (From Kurose & Ross, 4th ed.) In this project you will implement a mail user agent (MUA) that sends mail to other users.
WRITING DATA TO A BINARY FILE
WRITING DATA TO A BINARY FILE TEXT FILES VS. BINARY FILES Up to now, we have looked at how to write and read characters to and from a text file. Text files are files that contain sequences of characters.
The Java Virtual Machine and Mobile Devices. John Buford, Ph.D. [email protected] Oct 2003 Presented to Gordon College CS 311
The Java Virtual Machine and Mobile Devices John Buford, Ph.D. [email protected] Oct 2003 Presented to Gordon College CS 311 Objectives Review virtual machine concept Introduce stack machine architecture
Java Network Programming. The java.net package contains the Socket class. This class speaks TCP (connection-oriented protocol).
Java Network Programming The java.net package contains the Socket class. This class speaks TCP (connection-oriented protocol). The DatagramSocket class uses UDP (connectionless protocol). The java.net.socket
Mobile Application Languages XML, Java, J2ME and JavaCard Lesson 04 Java
Mobile Application Languages XML, Java, J2ME and JavaCard Lesson 04 Java Oxford University Press 2007. All rights reserved. 1 C and C++ C and C++ with in-line-assembly, Visual Basic, and Visual C++ the
MIDP 3.0 overview. Copyright 2008 Aplix Corporation. All rights reserved.
MIDP 3.0 overview MIDP 3.0 specification status 2 New MIDP 3.0 functionality 3 CLDC 1.1.1 4 Mandatory JSR 135 v1.1 compliance 5 Concurrency 6 Events 7 Events MIDlet-Event-Launch- :;;
COSC 6397 Big Data Analytics. Distributed File Systems (II) Edgar Gabriel Spring 2014. HDFS Basics
COSC 6397 Big Data Analytics Distributed File Systems (II) Edgar Gabriel Spring 2014 HDFS Basics An open-source implementation of Google File System Assume that node failure rate is high Assumes a small
Socket Programming in Java
Socket Programming in Java Learning Objectives The InetAddress Class Using sockets TCP sockets Datagram Sockets Classes in java.net The core package java.net contains a number of classes that allow programmers
Crash Course in Java
Crash Course in Java Based on notes from D. Hollinger Based in part on notes from J.J. Johns also: Java in a Nutshell Java Network Programming and Distributed Computing Netprog 2002 Java Intro 1 What is
Creating a Simple, Multithreaded Chat System with Java
Creating a Simple, Multithreaded Chat System with Java Introduction by George Crawford III In this edition of Objective Viewpoint, you will learn how to develop a simple chat system. The program will demonstrate
Continuous Integration Part 2
1 Continuous Integration Part 2 This blog post is a follow up to my blog post Continuous Integration (CI), in which I described how to execute test cases in Code Tester (CT) in a CI environment. What I
File I/O - Chapter 10. Many Stream Classes. Text Files vs Binary Files
File I/O - Chapter 10 A Java stream is a sequence of bytes. An InputStream can read from a file the console (System.in) a network socket an array of bytes in memory a StringBuffer a pipe, which is an OutputStream
public static void main(string[] args) { System.out.println("hello, world"); } }
Java in 21 minutes hello world basic data types classes & objects program structure constructors garbage collection I/O exceptions Strings Hello world import java.io.*; public class hello { public static
DC60 JAVA AND WEB PROGRAMMING JUNE 2014. b. Explain the meaning of the following statement public static void main (string args [ ] )
Q.2 a. How does Java differ from C and C++? Page 16 of Text Book 1 b. Explain the meaning of the following statement public static void main (string args [ ] ) Page 26 of Text Book 1 Q.3 a. What are the
How To Make A Game That Is Based On A Medieval Map (Georgie)
Text Frequency 1550 A location-based multi-user mobile game Waag Society is a knowledge institute operating on the cutting edge of culture and technology in relation to society, education, government and
Remote Controlling of Home Appliances using Mobile Telephony
Remote Controlling of Home Appliances using Mobile Telephony Rifat Shahriyar 1, Enamul Hoque 2, S.M. Sohan 3, Iftekhar Naim 4, Md. Mostafa Akbar 5 & Masud Karim Khan 6 1,2,3,4,5 Department of Computer
An Android-based Instant Message Application
An Android-based Instant Message Application Qi Lai, Mao Zheng and Tom Gendreau Department of Computer Science University of Wisconsin - La Crosse La Crosse, WI 54601 [email protected] Abstract One of the
Socket programming. Complement for the programming assignment INFO-0010
Socket programming Complement for the programming assignment INFO-0010 Outline Socket definition Briefing on the Socket API A simple example in Java Multi-threading and Synchronization HTTP protocol Debugging
Mobile-PC Suite: Using Mobile Phone as Remote to Control PC Operations
Mobile-PC Suite: Using Mobile Phone as Remote to Control PC Operations R.S.S.Vishnu Priya, P.Panini Sai, K.Ruth Ramya, N.Chandra Sekhar, K.Venkata Prasad, P.D.Nageswara Rao Dept. of CSE, KLCE Vaddeswaram,
Web Services in.net (1)
Web Services in.net (1) These slides are meant to be for teaching purposes only and only for the students that are registered in CSE4413 and should not be published as a book or in any form of commercial
Mobile Application Development. MIDP & GUI Programmierung
J2ME MIDlets Mobile Application Development MIDP & GUI Programmierung Christoph Denzler Fachhochschule Nordwestschweiz Institut für Mobile und Verteilte Systeme Lernziele Sie wissen wie ein MIDlet kontrolliert
Mobile App Sensor Documentation (English Version)
Mobile App Sensor Documentation (English Version) Mobile App Sensor Documentation (English Version) Version: 1.2.1 Date: 2015-03-25 Author: email: Kantar Media spring [email protected] Content Mobile App
Contents. 9-1 Copyright (c) 1999-2004 N. Afshartous
Contents 1. Introduction 2. Types and Variables 3. Statements and Control Flow 4. Reading Input 5. Classes and Objects 6. Arrays 7. Methods 8. Scope and Lifetime 9. Utility classes 10. Introduction to
Bangla Text Input and Rendering Support for Short Message Service on Mobile Devices
Bangla Text Input and Rendering Support for Short Message Service on Mobile Devices Tofazzal Rownok, Md. Zahurul Islam and Mumit Khan Department of Computer Science and Engineering, BRAC University, Dhaka,
The Software Engineering of Mobile Application Development
The Software Engineering of Mobile Application Development Dr. Christelle Scharff Pace University, NY, USA Thanks: NCIIA IBM Agenda Audience Context Java ME Process Mobiles Java ME Android Designing Coding
Lesson: All About Sockets
All About Sockets http://java.sun.com/docs/books/tutorial/networking/sockets/index.html Page 1 sur 1 The Java TM Tutorial Start of Tutorial > Start of Trail Trail: Custom Networking Lesson: All About Sockets
www.virtualians.pk CS506 Web Design and Development Solved Online Quiz No. 01 www.virtualians.pk
CS506 Web Design and Development Solved Online Quiz No. 01 Which of the following is a general purpose container? JFrame Dialog JPanel JApplet Which of the following package needs to be import while handling
Division of Informatics, University of Edinburgh
CS1Bh Lecture Note 20 Client/server computing A modern computing environment consists of not just one computer, but several. When designing such an arrangement of computers it might at first seem that
First Java Programs. V. Paúl Pauca. CSC 111D Fall, 2015. Department of Computer Science Wake Forest University. Introduction to Computer Science
First Java Programs V. Paúl Pauca Department of Computer Science Wake Forest University CSC 111D Fall, 2015 Hello World revisited / 8/23/15 The f i r s t o b l i g a t o r y Java program @author Paul Pauca
ResellerPlus - Bulk Http API Specification. (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System)
RouteSms ResellerPlus - Bulk Http API Specification (Document Version 1.0.0) (This Document gives details on how to send messages via the Bulk HTTP API for the RouteSms SMPP System) 1 P a g e HTTP API
CS 121 Intro to Programming:Java - Lecture 11 Announcements
CS 121 Intro to Programming:Java - Lecture 11 Announcements Next Owl assignment up, due Friday (it s short!) Programming assignment due next Monday morning Preregistration advice: More computing? Take
Intel Retail Client Manager Audience Analytics
Intel Retail Client Manager Audience Analytics By using this document, in addition to any agreements you have with Intel, you accept the terms set forth below. You may not use or facilitate the use of
The Java I/O System. Binary I/O streams (ascii, 8 bits) The decorator design pattern Character I/O streams (Unicode, 16 bits)
Binary I/O streams (ascii, 8 bits) InputStream OutputStream The Java I/O System The decorator design pattern Character I/O streams (Unicode, 16 bits) Reader Writer Comparing Binary I/O to Character I/O
!"# $ %!&' # &! ())*!$
!"# $ %!&' # &! ())*!$ !" #!$ %& ' ( ) * +,--!&"" $.!! /+010!" +!, 31! 4)&/0! $ #"5!! & + 6+ " 5 0 7 /&8-9%& ( +" 5)& /*#.! &( $ 1(" 5 # ( 8 +1 + # + 7$ (+!98 +&%& ( +!" (!+!/ (!-. 5 7 (! 7 1+1( & + ":!
Quick Introduction to Java
Quick Introduction to Java Dr. Chris Bourke Department of Computer Science & Engineering University of Nebraska Lincoln Lincoln, NE 68588, USA Email: [email protected] 2015/10/30 20:02:28 Abstract These
Chulalongkorn University International School of Engineering Department of Computer Engineering 2140105 Computer Programming Lab.
Chulalongkorn University Name International School of Engineering Student ID Department of Computer Engineering Station No. 2140105 Computer Programming Lab. Date Lab 2 Using Java API documents, command
Services. Relational. Databases & JDBC. Today. Relational. Databases SQL JDBC. Next Time. Services. Relational. Databases & JDBC. Today.
& & 1 & 2 Lecture #7 2008 3 Terminology Structure & & Database server software referred to as Database Management Systems (DBMS) Database schemas describe database structure Data ordered in tables, rows
Manual. Programmer's Guide for Java API
2013-02-01 1 (15) Programmer's Guide for Java API Description This document describes how to develop Content Gateway services with Java API. TS1209243890 1.0 Company information TeliaSonera Finland Oyj
Introduction to the Java Programming Language
Software Design Introduction to the Java Programming Language Material drawn from [JDK99,Sun96,Mitchell99,Mancoridis00] Java Features Write Once, Run Anywhere. Portability is possible because of Java virtual
5 HDFS - Hadoop Distributed System
5 HDFS - Hadoop Distributed System 5.1 Definition and Remarks HDFS is a file system designed for storing very large files with streaming data access patterns running on clusters of commoditive hardware.
gomobi Traffic Switching Guide Version 0.9, 28 September 2010
gomobi Traffic Switching Guide Version 0.9, 28 September 2010 Mobile/Desktop Traffic Switching... 3 Summary of Options... 3 Single Site Solutions... 4 Server-side Switching Code... 4 JavaScript Switching
java Features Version April 19, 2013 by Thorsten Kracht
java Features Version April 19, 2013 by Thorsten Kracht Contents 1 Introduction 2 1.1 Hello World................................................ 2 2 Variables, Types 3 3 Input/Output 4 3.1 Standard I/O................................................
The Sun Certified Associate for the Java Platform, Standard Edition, Exam Version 1.0
The following applies to all exams: Once exam vouchers are purchased you have up to one year from the date of purchase to use it. Each voucher is valid for one exam and may only be used at an Authorized
How To Write A Program For The Web In Java (Java)
21 Applets and Web Programming As noted in Chapter 2, although Java is a general purpose programming language that can be used to create almost any type of computer program, much of the excitement surrounding
Oracle Java SE Embedded
Oracle Java SE Embedded Developer's Guide Release 8 E28300-05 July 2014 Documentation that describes essential concepts and common tasks for Oracle Java SE Embedded technology, for platform and application
Java ME Clients for XML Web Services
66 Java ME Clients for XML Web Services Paul POCATILU Academy of Economic Studies, Bucharest Using Web services in developing applications has many advantages like the existence of standards, multiple
Spring Design ScreenShare Service SDK Instructions
Spring Design ScreenShare Service SDK Instructions V1.0.8 Change logs Date Version Changes 2013/2/28 1.0.0 First draft 2013/3/5 1.0.1 Redefined some interfaces according to issues raised by Richard Li
The Java Logging API and Lumberjack
The Java Logging API and Lumberjack Please Turn off audible ringing of cell phones/pagers Take calls/pages outside About this talk Discusses the Java Logging API Discusses Lumberjack Does not discuss log4j
MSDG Services Integration Document Draft Ver 1.2
Table of contents Page 1 of 17 Table of Contents 2 Push SMS Integration 1. 1.1 Overview HTTP API lets departments send across SMS messages using HTTP URL interface. The API supports SMS push (Single SMS
String sentence = new String(receivePacket.getData()); InetAddress IPAddress = receivepacket.getaddress(); int port = receivepacket.
164 CHAPTER 2 APPLICATION LAYER connection requests, as done in TCPServer.java. If multiple clients access this application, they will all send their packets into this single door, serversocket. String
