De-serialization setup. Default out and err streams to stdout, stderr if they are null.
(ObjectInputStream stream)
| 1186 | Default out and err streams to stdout, stderr if they are null. |
| 1187 | */ |
| 1188 | private void readObject(ObjectInputStream stream) |
| 1189 | throws java.io.IOException, ClassNotFoundException |
| 1190 | { |
| 1191 | stream.defaultReadObject(); |
| 1192 | |
| 1193 | // set transient fields |
| 1194 | if ( console != null ) { |
| 1195 | setOut( console.getOut() ); |
| 1196 | setErr( console.getErr() ); |
| 1197 | } else { |
| 1198 | setOut( System.out ); |
| 1199 | setErr( System.err ); |
| 1200 | } |
| 1201 | } |
| 1202 | |
| 1203 | /** |
| 1204 | Get the prompt string defined by the getBshPrompt() method in the |