Most programs use data in one form or another - as input, output or both. The
sources of input and output can vary from a local file to a socket on the
network, a database, in memory or another program. Even the type of data can
vary from objects and characters to multimedia and more.
The APIs Java provides for reading and writing streams of data have been part
of the core Java Development Kit since version 1.0, but they're often
overshadowed by the better known JavaBeans, JFC, RMI, JDBC and others.
However, input and output streams are the backbone of the Java APIs, and
understanding them is not only crucial but can also make programming with
them a lot of fun.
In this article we'll cover the fundamentals of I/O streams by looking at the
various stream classes and cover... (more)
Last month's issue (JDJ, Vol. 3, Issue 12) covered the basic concepts of
programming with Java's I/O streams, such as the difference between byte and
character streams, the various stream classes, the concept of stream chaining
and more. We'll conclude the subject this month by looking at some practical
uses of these streams.
There are so many uses of streams in Java apps that it's almost ... (more)
This presentation provides software developers, architects, and technical
leads, a fresh perspective on how to develop enterprise-class Java
applications rapidly, using Agile methods, plain-old Java objects (POJOs),
the Spring Framework, Hibernate, and Eclipse. Also, Extreme Programming (XP),
Agile Model Driven Development (AMDD) and refactoring are methods that can
expedite the software... (more)
After getting a head of gray hairs and a quickly receding hairline, I have
learned that the simplest solutions are often the best. Having worked with
Java since 1995 and various software development lifecycle methodologies over
the years, I have seen things grow complex in these areas. Thanks to some new
lighter-weight Java tools and agile methods, I can provide a fresh
perspective on de... (more)
In the previous two parts of this three-part article (JDJ Vol. 3, Issue 12
and JDJ Vol. 4, Issue 1), we looked at the fundamentals of programming with
Java I/O streams and the various APIs they can be used with. This month we'll
conclude this article by discussing the concept of writing custom (or,
specialized) stream classes that can process (or, filter) data in a special
fashion.
Overv... (more)