Exemple7B Class Reference


Static Public Member Functions

static void main (String[] args)

Detailed Description

Definition at line 5 of file Exemple7B.java.


Member Function Documentation

static void Exemple7B::main ( String[]  args  )  [inline, static]

Definition at line 7 of file Exemple7B.java.

References a, and b.

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(); /* a MUST be send to Scilab just after ois.readObject*/
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   }


The documentation for this class was generated from the following file:
Generated on Sun Mar 4 16:15:00 2007 for Scilab [trunk] by  doxygen 1.5.1