00001
00002 import java.io.*;
00003 import javasci.*;
00004
00005 class Exemple7B {
00006
00007 public static void main(String[] args)
00008 {
00009 try
00010 {
00011 FileInputStream fichier = new FileInputStream("Exemple7.ser");
00012 ObjectInputStream ois = new ObjectInputStream(fichier);
00013
00014 int col=4;
00015 int row=2;
00016 int r,c;
00017 double [] b=new double[row*col];
00018
00019 SciDoubleArray a = (SciDoubleArray) ois.readObject();
00020 a.Send();
00021
00022 b=a.getData();
00023
00024 System.out.println("Exemple 7 B DeSerialize");
00025 System.out.println("----------------------------------------------------");
00026 for(r=0;r<=(a.getRow()*a.getCol())-1;r++)
00027 {
00028 System.out.print(""+b[r]+" ");
00029 }
00030 System.out.println("");
00031 System.out.println("----------------------------------------------------");
00032
00033 }
00034
00035 catch (java.io.IOException e)
00036 {
00037 e.printStackTrace();
00038 }
00039 catch (ClassNotFoundException e)
00040 {
00041 e.printStackTrace();
00042 }
00043
00044 Scilab.Finish();
00045
00046 }
00047 }
00048