| 25 | /// A data input stream lets an application read primitive Java data types from an underlying input stream in a machine-independent way. An application uses a data output stream to write data that can later be read by a data input stream. |
| 26 | /// Since: JDK1.0, CLDC 1.0 See Also:DataOutputStream |
| 27 | public class DataInputStream extends java.io.InputStream implements java.io.DataInput{ |
| 28 | /// The input stream. |
| 29 | protected java.io.InputStream in; |
| 30 | |
| 31 | /// Creates a DataInputStream and saves its argument, the input stream in, for later use. |
| 32 | /// in - the input stream. |
| 33 | public DataInputStream(java.io.InputStream in){ |
| 34 | //TODO codavaj!! |
| 35 | } |
| 36 | |
| 37 | /// Returns the number of bytes that can be read from this input stream without blocking. |
| 38 | /// This method simply performs in.available() and returns the result. |
| 39 | public int available() throws java.io.IOException{ |
| 40 | return 0; //TODO codavaj!! |
| 41 | } |
| 42 | |
| 43 | /// Closes this input stream and releases any system resources associated with the stream. This method simply performs in.close(). |
| 44 | public void close() throws java.io.IOException{ |
| 45 | return; //TODO codavaj!! |
| 46 | } |
| 47 | |
| 48 | /// Marks the current position in this input stream. A subsequent call to the reset method repositions this stream at the last marked position so that subsequent reads re-read the same bytes. |
| 49 | /// The readlimit argument tells this input stream to allow that many bytes to be read before the mark position gets invalidated. |
| 50 | /// This method simply performs in.mark(readlimit). |
| 51 | public void mark(int readlimit){ |
| 52 | return; //TODO codavaj!! |
| 53 | } |
| 54 | |
| 55 | /// Tests if this input stream supports the mark and reset methods. This method simply performs in.markSupported(). |
| 56 | public boolean markSupported(){ |
| 57 | return false; //TODO codavaj!! |
| 58 | } |
| 59 | |
| 60 | /// Reads the next byte of data from this input stream. The value byte is returned as an int in the range 0 to 255. If no byte is available because the end of the stream has been reached, the value -1 is returned. This method blocks until input data is available, the end of the stream is detected, or an exception is thrown. |
| 61 | /// This method simply performs in.read() and returns the result. |
| 62 | public int read() throws java.io.IOException{ |
| 63 | return 0; //TODO codavaj!! |
| 64 | } |
| 65 | |
| 66 | /// See the general contract of the read method of DataInput. |
| 67 | /// Bytes for this operation are read from the contained input stream. |
| 68 | public final int read(byte[] b) throws java.io.IOException{ |
| 69 | return 0; //TODO codavaj!! |
| 70 | } |
| 71 | |
| 72 | /// Reads up to len bytes of data from this input stream into an array of bytes. This method blocks until some input is available. |
| 73 | /// This method simply performs in.read(b, off, len) and returns the result. |
| 74 | public final int read(byte[] b, int off, int len) throws java.io.IOException{ |
| 75 | return 0; //TODO codavaj!! |
| 76 | } |
| 77 | |
| 78 | /// See the general contract of the readBoolean method of DataInput. |
| 79 | /// Bytes for this operation are read from the contained input stream. |
| 80 | public final boolean readBoolean() throws java.io.IOException{ |
| 81 | return false; //TODO codavaj!! |
| 82 | } |
| 83 | |
| 84 | /// See the general contract of the readByte method of DataInput. |
nothing calls this directly
no outgoing calls
no test coverage detected