58 |
* |
* |
59 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
60 |
*/ |
*/ |
61 |
public abstract int available() throws IOException; |
int available() throws IOException; |
62 |
|
|
63 |
/** |
/** |
64 |
* 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 |
69 |
* |
* |
70 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
71 |
*/ |
*/ |
72 |
public abstract int read() throws IOException; |
int read() throws IOException; |
73 |
|
|
74 |
/** |
/** |
75 |
* 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. |
83 |
* |
* |
84 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
85 |
*/ |
*/ |
86 |
public abstract int read(byte[] buf) throws IOException; |
int read(byte[] buf) throws IOException; |
87 |
|
|
88 |
/** |
/** |
89 |
* 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 |
102 |
* |
* |
103 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
104 |
*/ |
*/ |
105 |
public abstract int read(byte[] buf, int offset, int len) throws IOException; |
int read(byte[] buf, int offset, int len) throws IOException; |
106 |
|
|
107 |
/** |
/** |
108 |
* 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 |
115 |
* found |
* found |
116 |
* @exception IOException If any other error occurs |
* @exception IOException If any other error occurs |
117 |
*/ |
*/ |
118 |
public abstract Object readObject() |
Object readObject() |
119 |
throws ClassNotFoundException, IOException; |
throws ClassNotFoundException, IOException; |
120 |
|
|
121 |
/** |
/** |
129 |
* |
* |
130 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
131 |
*/ |
*/ |
132 |
public abstract long skip(long numBytes) throws IOException; |
long skip(long numBytes) throws IOException; |
133 |
|
|
134 |
/** |
/** |
135 |
* This method closes the input source |
* This method closes the input source |
136 |
* |
* |
137 |
* @exception IOException If an error occurs |
* @exception IOException If an error occurs |
138 |
*/ |
*/ |
139 |
public abstract void close() throws IOException; |
void close() throws IOException; |
140 |
|
} |
|
} // interface ObjectInput |
|
|
|
|