MIDP packages - 2

30 April 2008

The CLDC java.io package contains many of the standard J2SE io package classes. Following are CLDC java.io input classes:

- ByteArrayInputStream – It is used to read bytes from inputstream in to a buffer

- DataInput – Its an interface that is used (its implementations) to read bytes from a binary input stream. After reading, the bytes are translated into primitive Java data types.

- DataInputStream- It provides an implementation of DataInput interface.

- DataInputStream – It is used to read primitive Java data types from the underlying input stream in a platform-independent way.

- InputStream – Its an abstract class that is the superclass of all classes representing an input stream of bytes.

- InputStreamReader – It is used to reads bytes and translates them into characters according to a specified character encoding.

- Reader – Its an abstract class for reading character streams.

InputStream classprovides following methods:

public int available() throws IOException 
public void close() throws IOException
public void mark(int readlimit)
public boolean markSupported()
abstract public int read() throws IOException
public int read(byte[] b) throws IOException
public int read(byte[] b, int off, int len) throws IOException
public void reset() throws IOException 
public long 	skip(long n) throws IOException

del.icio.us:MIDP packages - 2  digg:MIDP packages - 2  spurl:MIDP packages - 2  wists:MIDP packages - 2  simpy:MIDP packages - 2  newsvine:MIDP packages - 2  blinklist:MIDP packages - 2  furl:MIDP packages - 2  reddit:MIDP packages - 2  fark:MIDP packages - 2  blogmarks:MIDP packages - 2  Y!:MIDP packages - 2  smarking:MIDP packages - 2  magnolia:MIDP packages - 2  segnalo:MIDP packages - 2  gifttagging:MIDP packages - 2

Top Of Page | Trackback

If you found this page useful, consider linking to it. Simply copy and paste the code below into your web site.

It will look like this: MIDP packages - 2

Leave a Reply