MIDP packages - 2
30 April 2008The 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
Related Posts:
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