58 |
*/ |
*/ |
59 |
public abstract int available() throws IOException; |
public abstract int available() throws IOException; |
60 |
|
|
|
/*************************************************************************/ |
|
|
|
|
61 |
/** |
/** |
62 |
* This method reading a byte of data from a stream. It returns that byte |
* This method reading a byte of data from a stream. It returns that byte |
63 |
* as an int. This method blocks if no data is available to be read. |
* as an int. This method blocks if no data is available to be read. |
68 |
*/ |
*/ |
69 |
public abstract int read() throws IOException; |
public abstract int read() throws IOException; |
70 |
|
|
|
/*************************************************************************/ |
|
|
|
|
71 |
/** |
/** |
72 |
* This method reads raw bytes and stores them them a byte array buffer. |
* This method reads raw bytes and stores them them a byte array buffer. |
73 |
* Note that this method will block if no data is available. However, |
* Note that this method will block if no data is available. However, |
82 |
*/ |
*/ |
83 |
public abstract int read(byte[] buf) throws IOException; |
public abstract int read(byte[] buf) throws IOException; |
84 |
|
|
|
/*************************************************************************/ |
|
|
|
|
85 |
/** |
/** |
86 |
* This method reads raw bytes and stores them in a byte array buffer |
* This method reads raw bytes and stores them in a byte array buffer |
87 |
* <code>buf</code> starting at position <code>offset</code> into the |
* <code>buf</code> starting at position <code>offset</code> into the |
101 |
*/ |
*/ |
102 |
public abstract int read(byte[] buf, int offset, int len) throws IOException; |
public abstract int read(byte[] buf, int offset, int len) throws IOException; |
103 |
|
|
|
/*************************************************************************/ |
|
|
|
|
104 |
/** |
/** |
105 |
* Reads an object instance and returns it. If the class for the object |
* Reads an object instance and returns it. If the class for the object |
106 |
* being read cannot be found, then a ClassNotFoundException will |
* being read cannot be found, then a ClassNotFoundException will |
115 |
public abstract Object readObject() |
public abstract Object readObject() |
116 |
throws ClassNotFoundException, IOException; |
throws ClassNotFoundException, IOException; |
117 |
|
|
|
/*************************************************************************/ |
|
|
|
|
118 |
/** |
/** |
119 |
* This method causes the specified number of bytes to be read and |
* This method causes the specified number of bytes to be read and |
120 |
* discarded. It is possible that fewer than the requested number of bytes |
* discarded. It is possible that fewer than the requested number of bytes |
128 |
*/ |
*/ |
129 |
public abstract long skip(long num_bytes) throws IOException; |
public abstract long skip(long num_bytes) throws IOException; |
130 |
|
|
|
/*************************************************************************/ |
|
|
|
|
131 |
/** |
/** |
132 |
* This method closes the input source |
* This method closes the input source |
133 |
* |
* |