Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Java EE 7 Development with NetBeans 8
  • Table Of Contents Toc
  • Feedback & Rating feedback
Java EE 7 Development with NetBeans 8

Java EE 7 Development with NetBeans 8

By : David R Heffelfinger
4.8 (6)
close
close
Java EE 7 Development with NetBeans 8

Java EE 7 Development with NetBeans 8

4.8 (6)
By: David R Heffelfinger

Overview of this book

The book is aimed at Java developers who wish to develop Java EE applications while taking advantage of NetBeans functionality to automate repetitive tasks. Familiarity with NetBeans or Java EE is not assumed.
Table of Contents (13 chapters)
close
close
12
Index

The JSON-P streaming API


The JSON-P streaming API allows us to read and write JSON data to and from a stream (a subclass of java.io.OutputStream or a subclass of java.io.Writer). The JSON-P streaming API has better performance and better memory efficiency than the JSON-P object model API. These performance and efficiency gains, however, come with some limitations. The JSON-P streaming API only allows JSON data to be read sequentially; we can't access JSON properties directly like we can with the object model API. In general, we should use the streaming API if we need to handle large amount of JSON data; otherwise, the simpler object model API should be used.

In the following sections, we will reimplement the example from the previous section using the JSON-P streaming API.

Note

Since the examples on this section mirror the functionality we implemented in the previous sections, we will not show any screenshots of our sample application in action. They will be identical to the ones we saw earlier...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY