Skip to main content

IBM  
Shop Support Downloads
IBM Home Products Consulting Industries News About IBM
IBM : developerWorks : Java Technology : Education - online courses
J2ME: Step by step
Download tutorial zip fileView letter-sized PDF fileView A4-sized PDF fileE-mail this tutorial to a friend
Main menu Section menu Give feedback on this tutorial Previous Next
7. CLDC API

java.io output classes page 7 of 11



The CLDC API contains many of the commonly used output classes from J2SE. In particular, the CLDC java.io package includes the following output classes:

  • ByteArrayOutputStream -- Implements an output stream where data is written into a bytes array.

  • DataOutput -- An interface that provides for writing primitive Java data types to a binary output stream. DataOutputStream provides an implementation of this interface.

  • DataOutputStream -- An output stream that allows an application to write primitive Java data types in a portable way.

  • OutputStream -- An abstract class that is the superclass of all classes representing an output stream of bytes.

  • OutputStreamReader -- Given characters, translates them into bytes according to a specified character encoding.

  • PrintStream -- Adds a convenient way to print a textual representation of data values.

  • Writer -- An abstract class for writing character streams.

Some of these classes may not contain all the methods supported by J2SE, such as the floating point and double precision methods.


Main menu Section menu Give feedback on this tutorial Previous Next
Privacy Legal Contact