Serialization Allows you to turn Java Objects into serial data that can be either save to a file or sent over a network. Usefull for persisting data.

Slides:



Advertisements
Similar presentations
WaveMaker Visual AJAX Studio 4.0 Training
Advertisements

Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of The Java Development Tools project.
1 Computing for Todays Lecture 22 Yumei Huo Fall 2006.
Integrated Development Environments. Today We Will: Discuss what IDE’s are used for Go over the Eclipse IDE: –What is Eclipse? –How to install and set.
1HW13 Modify ThreadSafeBankAccount2 to use an assertion that checks a lock is released. Learn how to compile and run Java code with assertions. Define.
Click to add your Title Click to Write your name. Make sure it looks like this. Author: Nancy Power Point.
Current Topics in Programming Languages Lecture 15_1 George Koutsogiannakis SUMMER
Introduction to CVS 7/3/20151UMBC CMSC 341. Outline Introduction to Source Code Management What is CVS? CVS for Project Submission Basic commands Checkout,
FIRST COURSE Creating Web Pages with Microsoft Office 2007.
Create a New Application and Project Open the Create Application dialog. Enter the application name of your choice and the directory. Select No Template.
Getting Started with Eclipse Sandeep Pasuparthy. What’s Eclipse? It is a free software / open source platform- independent software framework for delivering.
JSP and Servlets Lecture notes by Theodoros Anagnostopoulos.
Files and Streams 1 -Based on slides from Deitel & Associates, Inc. - Revised by T. A. Yang.
Using Eclipse. What is Eclipse? The Eclipse Platform is an open source IDE (Integrated Development Environment), created by IBM for developing Java programs.
Javadoc. The Plan ● What is Javadoc? ● Writing Javadoc comments ● Using the Javadoc tool ● Demo ● Practice.
Turning Glowing Text into Animated Glowing Text Using Animation Shop.
Greenfoot. Getting Started Open the Greenfoot download site: Select Greenfoot
SENG 301 – Tutorial 1 Introduction to Eclipse, Subclipse, and JUnit Slides: Theodore D. Hellmann.
RMS Importer Status MACS Week March 2011 PP b-ABR_RMSImporterStatus Angela Brett RMS Importer Status 1.
July 2011CMSC 341 CVS/Ant 1 CMSC 341 Java Packages Ant CVS Project Submission.
Oracle Data Integrator Procedures, Advanced Workflows.
Doctoral Coordinators: Approve for Admission or Waitlist ADMIT.
Change in your CAD Project File - it happens all the time in robotics.
Topic Java EE installation (Eclipse, glassfish, etc.) Eclipse configuration for EE Creating a Java Web Dynamic Project Creating your first servlet.
Test Automation For Web-Based Applications Portnov Computer School Presenter: Ellie Skobel.
Android networking 1. Network programming with Android If your Android is connected to a WIFI, you can connect to servers using the usual Java API, like.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
Software Development COMP220/COMP285 Seb Coope Introducing Ant These slides are mainly based on “Java Development with Ant” - E. Hatcher & S.Loughran.
Chapter 1 Introducing Ant. What is ant? Ant is a build tool  Automate the tasks of compiling code, running test, and packaging the results for redistribution.
Object Serialization. Sequential-access Text Files Sequential-access files store records In order by the record-key field Java imposes no structure on.
Eclipse Project. Installing Visit to download a copy for your home computerhttp:// –Get Release version 3.0 (or.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
It works! PPInfoScreen Server is now running and will display your deployed presentations Some instructions will follow…
CS 116 OBJECT ORIENTED PROGRAMMING II LECTURE 12 GEORGE KOUTSOGIANNAKIS Copyright: 2015 Illinois Institute of Technology/ George Koutsogiannakis 1.
Introduction to Eclipse Programming with an Integrated Development Environment.
Building the CarryDrop simulation in Eclipse Creating a new project with existing code from John Murphy’s RePast tutorial.
Installing RandoNode Starter Kit OPEN Development Conference September 17, 2008 Kasi Perumal Consultant.
Test Automation Using Selenium Presented by: Shambo Ghosh Ankit Sachan Samapti Sinhamahapatra Akshay Kotawala.
“Successful Uses of HTML Computer Code” Shannon Harwell.
IBM Software Group software Rational Business Developer.
Spell Checker web service (you build a web client that interacts with the service) The client uses a servlet class and a JSP page. The user passes information.
1 CSE 331 Memento Pattern and Serialization slides created by Marty Stepp based on materials by M. Ernst, S. Reges, D. Notkin, R. Mercer, Wikipedia
Lec 10 agenda >git fetch origin lab10g; > git checkout -b lab10g origin/lab10g; Format/rules for Week 11 Advanced Topics (all beyond the scope of this.
XP Creating Web Pages with Microsoft Office
Access QA servers Install SSH/SFTP software –T:\QualityAssurance\Tools\SSH.
Threads and Swing Multithreading. Contents I. Simulation on Inserting and Removing Items in a Combo Box II. Event Dispatch Thread III. Rules for Running.
OBJECT ORIENTED PROGRAMMING II LECTURE 21 GEORGE KOUTSOGIANNAKIS
SENG 301 – Tutorial 1 Introduction to Eclipse, Subclipse, and JUnit
Download TPL.zip to some directory
Java Serialization B.Ramamurthy 11/8/2018 B.Ramamurthy.
Java Serialization B.Ramamurthy 11/14/2018 B.Ramamurthy.
worldsystembuilder.com/gceo
Setting up an Eclipse project from a repository on GitHub
Serialization and Deserialization Bullet points from Head First Java, Ch Dec-18 serialization.ppt.
Starting Jena 3 in Eclipse
CSE 331 Memento Pattern slides created by Marty Stepp based on materials by M. Ernst, S. Reges, D. Notkin, R. Mercer, Wikipedia
OBJECT ORIENTED PROGRAMMING II LECTURE 22 GEORGE KOUTSOGIANNAKIS
Using Eclipse.
To insert this slide into your presentation
To insert this slide into your presentation
To insert this slide into your presentation
Running a Java Program using Blue Jay.
Working with Libraries
To insert this slide into your presentation
To insert this slide into your presentation
The command invocation protocol
To insert this slide into your presentation
To insert this slide into your presentation
To insert this slide into your presentation
Presentation transcript:

Serialization Allows you to turn Java Objects into serial data that can be either save to a file or sent over a network. Usefull for persisting data.

Serialization Syntax FileOutputStream filOut = new FileOutputStream("gamestate.ser"); ObjectOutputStream out = new ObjectOutputStream(filOut); out.writeObject(gst); out.close(); filOut.close();

Deserialization Syntax FileInputStream filIn = new FileInputStream("gamestate.ser"); ObjectInputStream ois = new ObjectInputStream(filIn); gst= (GameState) ois.readObject(); ois.close(); filIn.close();

Ant Build Tool Ant is integrated into Eclipse Ant allows you to build, copy files, deploy files, generate jar files, etc.

Ant exe-JAR 1/ right-click your project in eclipse project- or package-explorer and select Export 2/ Select the AntBuildfiles from the General directory 3/ accept the defaults, and make sure both check boxes are selected. 4/ Select Window || Show View || Ant 5/ drag your build.xml file into the Ant view. 6/ open up the build.xml file in the editor

Ant exe-JAR 7/ add the below target (next slide) within the enclosing tags 8/ save the build.xml. click on the jar target in the Ant view and click run 9/ refresh your project by clicking F5 and you will see the generated executable jar.

SwingWorker SwingWorker takes two Object parameters. +The first is the return value and is passed to done() +The second parameter is the progress value and is passed to publish/process. Example: SwingWorker There are three important methods of SwingWorker. +doInBackGround() --background thread +process() -main UI thread +done() -main UI thread