01: package sisc.ser;
02:
03: import java.io.ObjectInput;
04: import java.io.IOException;
05: import java.math.BigDecimal;
06: import java.math.BigInteger;
07:
08: import sisc.data.Expression;
09: import sisc.data.Value;
10: import sisc.env.SymbolicEnvironment;
11:
12: public interface Deserializer extends ObjectInput {
13:
14: BigInteger readBigInteger() throws IOException;
15:
16: BigDecimal readBigDecimal() throws IOException;
17:
18: Expression readExpression() throws IOException;
19:
20: Expression[] readExpressionArray() throws IOException;
21:
22: Value[] readValueArray() throws IOException;
23:
24: Expression readInitializedExpression() throws IOException;
25:
26: SymbolicEnvironment readSymbolicEnvironment() throws IOException;
27:
28: Class readClass() throws IOException;
29: }
30:
31: /*
32: * The contents of this file are subject to the Mozilla Public
33: * License Version 1.1 (the "License"); you may not use this file
34: * except in compliance with the License. You may obtain a copy of
35: * the License at http://www.mozilla.org/MPL/
36: *
37: * Software distributed under the License is distributed on an "AS
38: * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
39: * implied. See the License for the specific language governing
40: * rights and limitations under the License.
41: *
42: * The Original Code is the Second Interpreter of Scheme Code (SISC).
43: *
44: * The Initial Developer of the Original Code is Scott G. Miller.
45: * Portions created by Scott G. Miller are Copyright (C) 2000-2007
46: * Scott G. Miller. All Rights Reserved.
47: *
48: * Contributor(s):
49: * Matthias Radestock
50: *
51: * Alternatively, the contents of this file may be used under the
52: * terms of the GNU General Public License Version 2 or later (the
53: * "GPL"), in which case the provisions of the GPL are applicable
54: * instead of those above. If you wish to allow use of your
55: * version of this file only under the terms of the GPL and not to
56: * allow others to use your version of this file under the MPL,
57: * indicate your decision by deleting the provisions above and
58: * replace them with the notice and other provisions required by
59: * the GPL. If you do not delete the provisions above, a recipient
60: * may use your version of this file under either the MPL or the
61: * GPL.
62: */
|